标记照片中的页面
问候,
事情是这样的:
我正在开发一个应用程序,其中用户或他们管理的页面在自己的图像中被标记,但是,标记他们管理的页面不起作用,我对用户被标记没有任何问题。
下面是一些代码:
$tdata = array('tag_uid' => $fb_id,'x' => 0,'y' => 0);
$datatags[] = $tdata;
$attachment = array(
'access_token' => $access_token,
'tags' => $datatags
);
$attachment['image'] = '@'.realpath($image_name.);
$result = $facebook->api('/'.$album_id.'/photos', 'POST', $attachment);
$fb_id
是用户或页面的 ID。这是使用 Graph API 中的 /me/accounts
获取的,
谢谢!
Greetings
Here's what's up:
I'm working on an app where the user or a page they administrate is tagged in their own image, however, tagging a page they administrate doesn't function, I have no trouble with the user being tagged.
Here's some code:
$tdata = array('tag_uid' => $fb_id,'x' => 0,'y' => 0);
$datatags[] = $tdata;
$attachment = array(
'access_token' => $access_token,
'tags' => $datatags
);
$attachment['image'] = '@'.realpath($image_name.);
$result = $facebook->api('/'.$album_id.'/photos', 'POST', $attachment);
$fb_id
is either the ID for the user or the page. which is grabbed using /me/accounts
in the Graph API
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据文档,你不能这样做:
https://developers.facebook.com/docs/参考/api/照片/
Per the documentation you cannot do this:
https://developers.facebook.com/docs/reference/api/photo/