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

后端 未结 3 1233
终归单人心
终归单人心 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:46

    Change the url to

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

    tags is not a compatible method! use photo to retrieve the specified data

    Take a look at!

    http://developers.facebook.com/docs/reference/api/photo for tagging users in photos.

提交回复
热议问题