如何检索第三方 Facebook 应用发布的链接?
我正在尝试构建一个应用程序来获取 Facebook 页面上发布的所有链接。我将使用 Kotaku 页面作为示例(https://www.facebook.com/kotaku
,Facebook ID 为 273824104039
)。
我尝试通过图形 API (https://graph.facebook.com/273824104039
) 或通过 FQL 获取链接(这是我使用的查询:SELECT link_id,owner, title、url、owner_comment、summary、created_time FROM link WHERE Owner = 273824104039
),但它们都只返回发布的链接的子集(截至撰写本文时为 20)。
(所有请求都是使用我授予 read_stream 权限的帐户的访问令牌发出的。我也“喜欢”Kotaku 页面,但根据文档,Facebook 上的每个人都可以使用 links
连接。 )
如果您进入该页面,很明显有超过 20 个链接,但其中大多数是通过 dlvr.it 应用程序发布的,并且这些链接没有显示在上面的查询中。
那么有人知道还有一种方法可以获取这些链接吗?如果可能的话,我希望获得该页面上发布的所有链接,而不仅仅是过去 50 个或过去 30 天的链接。
I am trying to build an app that fetch all the links posted on a Facebook page. I'll use the Kotaku page as an example (https://www.facebook.com/kotaku
, Facebook ID is 273824104039
).
I have tried to get the links via the graph API (https://graph.facebook.com/273824104039
) or via FQL (here is the query I used: SELECT link_id, owner, title, url, owner_comment, summary, created_time FROM link WHERE owner = 273824104039
), but both of them only return a subset of the links posted (20 as of writing this post).
(All request were made with an access token from my account that I granted the read_stream permission. I also 'like' the Kotaku page, but according to the documentation the links
connection is available to everyone on Facebook.)
If you go on the page, it's pretty obvious that there are more than 20 links, but most of these were posted via the dlvr.it app and those are not showing in the queries above.
So does anyone know it there is a way to get those links as well? If possible, I would like to get all the links posted on that page not just the last 50 or from the last 30 days.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为问题在于应用程序发布的链接不会被视为原生 Facebook 链接,它们只是带有附件的帖子,因此您不太可能在
链接
中找到任何内容。话虽如此,请尝试查看stream
FQL 表或posts< /code> 图表参数
。
I think the issue is that links posted by apps aren't treated as native Facebook links, they're just posts with attachments, so you're not likely to find anything in
links
. With that said, try looking at thestream
FQL table or theposts
parameter of the graph.