如何从 Facebook 粉丝页面获取相册
我需要在我的 Facebook 粉丝页面上获取粉丝分享的所有照片。我能做什么?
我尝试使用 api graph,但我只看到我共享的相册。
I need get all photos shared by fans in my facebook page fan. I can do?
I try using api graph but I see only album shared by me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用过滤器来获取墙上某些特定类型的帖子:
请参阅 图形API参考。
但是,您无法使用
type=photo
来获取照片帖子。无论出于何种原因,API 不支持此功能(可能是出于隐私原因;我不知道)。但是,提要上的每个帖子都有一个type
字段,指示帖子的类型。您可以使用它来读取类型为“照片”的提要和过滤器帖子:要获取实际图片,请访问
图片
字段:如果您查看此指向的 URL,它很可能以
_s.jpg
结尾。这是图片的“小”版本。将其替换为 _o ,您将获得原始版本(据我所知,这没有记录,但似乎是它的工作原理)。如果您使用的是 Linux 或 Mac 计算机,则可以使用curl
手动下载照片:或者使用您的编程语言的 HTTP 客户端库来下载它。
You can use a filter to get at some specific types of posts on a wall:
See "Searching" in the Graph API Reference.
However, you can not use
type=photo
to get photo posts. For whatever reason, the API doesn't support this (privacy reasons maybe; I don't know). However, each post on a feed has atype
field, indicating the type of the post. You can use this to read the feed and filter posts that have type "photo":To get at the actual picture, access the
picture
field:If you look at the URL this points to, it most likely ends with
_s.jpg
. This is the "small" version of the picture. Replace it with_o
and you will get the original version (as far as I can tell this is not documented, but seems to be how it works). You can manually download the photo withcurl
if you're on a Linux or Mac machine:Or use your programming language's HTTP client library to download it.