如何检索第三方 Facebook 应用发布的链接?

发布于 2024-10-31 23:35:48 字数 664 浏览 4 评论 0原文

我正在尝试构建一个应用程序来获取 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

2024-11-07 23:35:48

我认为问题在于应用程序发布的链接不会被视为原生 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 the stream FQL table or the posts parameter of the graph.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文