脸书:如何使用访问令牌来标记照片



下面的代码成功上传了照片,但是当我尝试标记时,出现以下错误:

未捕获的 OAuth 异常:无效的 OAuth 访问令牌签名

如何使用访问令牌标记照片?

$photo = $facebook->api('/'.$aid.'/photos', 'POST', $attachment);

$tags['access_token'] = $access_token;
$tags = array(
  'tag_uid'=> $re[0],
  'x'      => '30',
  'y'      => '60',
);
$response = $facebook->api('/'.$photo['id'].'/tags', 'POST', $tags);

你缺少"to"参数

https://developers.facebook.com/docs/reference/api/photo/#tags

 $tags['access_token'] = $access_token;
 $tags = array(
 'to' => $user,
 'tag_uid'=> $re[0],
 'x'      => '30',
 'y'      => '60',
);
$response = $facebook->api('/'.$photo['id'].'/tags', 'POST', $tags);

相关内容

最新更新