获取 facebook“其他人的照片”使用图形 API
我可以毫无问题地从我的 Facebook 页面获取图像,但只能获取页面管理员上传的图像。
https://graph.facebook.com/tofinobc/photos/
我想要得到的是“其他人”上传的所有图像 - 由粉丝发布到页面的图像。
能做到吗?
I am able to get images from my Facebook page no problem, but only images uploaded by page admins.
https://graph.facebook.com/tofinobc/photos/
What I want to get is all images uploaded "by others" - Images posted to the page by fans.
Can it be done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,我刚刚验证您的说法是正确的,/photo 连接中的照片只是页面和页面管理员放置在那里的照片。但是,对于用户上传到页面的照片,它们不在那里,因为它们位于不同的相册中:
fql?q=SELECT pid, object_id,src_big, link, Caption FROM photo WHERE pid IN(SELECT pid from photo_tag WHERE subject='PAGE_ID')
不知何故,当上传到页面时,facebook 会在相册中“标记”该页面。奇怪吧?
Yes I just verified that you are correct in stating that the photos in the /photo connection are only photos put there by the page and page admins. However for photos that users upload to the page, they're not there, because the live in a different album:
fql?q=SELECT pid, object_id,src_big, link, caption FROM photo WHERE pid IN(SELECT pid from photo_tag WHERE subject='PAGE_ID')
Somehow when uploaded to a page, facebook "tags" the page in the album. Strange, eh?