Facebook:如何使用访问令牌标记照片
下面的代码成功上载了照片,但当我尝试标记时,出现以下错误: 未捕获的OAuthException:无效的OAuth访问令牌签名 如何使用accesstoken标记照片Facebook:如何使用访问令牌标记照片,facebook,facebook-graph-api,Facebook,Facebook Graph Api,下面的代码成功上载了照片,但当我尝试标记时,出现以下错误: 未捕获的OAuthException:无效的OAuth访问令牌签名 如何使用accesstoken标记照片 $photo = $facebook->api('/'.$aid.'/photos', 'POST', $attachment); $tags['access_token'] = $access_token; $tags = array( 'tag_uid'=> $re[0], 'x' =>
$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”的论点
$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);