0

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

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

如何使用 accesstoken 标记照片?

$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);
4

1 回答 1

0

你错过了“到”论点

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);
于 2012-09-24T07:21:48.570 回答