开发者

making multiples tags on photos in facebook

开发者 https://www.devze.com 2023-04-05 03:28 出处:网络
it is possible? For example: https://graph.开发者_如何学Pythonfacebook.com/PHOTO_ID/tags/user1,user2,user3,etc

it is possible? For example:

https://graph.开发者_如何学Pythonfacebook.com/PHOTO_ID/tags/user1,user2,user3,etc 

Actually, I'm looking for alternative to this:

  $friends = json_decode($facebook->api('/me/friends'), true);
  $friends = $friends['data'];
  foreach($friends as $friend) { 
    $id = $friend['id'];
    $name = $friend['name'];
          echo 'User='.$name.' state='.(PhotoTag($photo_id, $id) ? 'ok' : 'failed')."\r\n";
 }

Thanks in advance!


Try doing it via the batch requests feature of the Facebook Graph API.

0

精彩评论

暂无评论...
验证码 换一张
取 消