How can I tag a user in a photo using the Facebook Graph API?

后端 未结 3 1234
终归单人心
终归单人心 2020-12-05 08:59

I tried:

$args = array(
  \'access_token\' => $access_token,
  \'id\' => $uid
);

$url = \"https://graph.facebook.com/{$idPhoto}/tags\";

$ch = curl_in         


        
3条回答
  •  误落风尘
    2020-12-05 09:29

    There is no current mechanism to set tags with the Facebook Graph API.

    You can use photos.addTag with the old REST API which you should be able to download here: http://pearhub.org/get/facebook-0.1.0.tgz. If anyone has a better link, I would appreciate it.

    Looking at this article from the Facebook developers http://developers.facebook.com/blog/post/371 it seems likely that the new API will never support setting tags "let the users do the tagging". This is unfortunate for apps (like mine) that want to integrate tagging.

提交回复
热议问题