有没有办法使用 Graph API 或 FQL 查询所有 Facebook 页面或前 20%(按点赞数)?

发布于 2024-11-16 21:57:44 字数 404 浏览 1 评论 0 原文

我想建立我自己的 Facebook 上最“喜欢”页面的列表。 FB 本身似乎也做了这样的一个版本,至少针对字母表中的每个字母。每个目录页面,例如 http://www.facebook.com/directory/pages/A 列出以该字母开头的前 20 个最受欢迎的页面。

如果我知道每个 FB 页面的 ID,那么我可以使用图形 API 轻松获取其点赞数,但我不知道如何获取初始列表。我确信它很大,而且说实话,我真的宁愿只拥有所有页面的前 20% 左右。但如果我拥有所有这些,我就可以自己进行分类。

我搜索了 FB 开发论坛并浏览了他们的文档,但找不到方法。使用 FQL 的查询似乎也不使用通配符。

I want to build my own list of the most 'liked' pages on Facebook. FB itself appears to do a version of this, at least for each letter of the alphabet. Each directory page, such as http://www.facebook.com/directory/pages/A lists the top 20 most liked pages starting with that letter.

If I knew the IDs of every FB page then I could easily grab its like count using the graph API, but I don't know of a way to get that initial list. I'm sure it's huge, and honestly, I really would rather just have the top 20% or so of all pages. But if I had them all I could do the sorting myself.

I've searched the FB dev forums and looked through their docs but can't find a way. Queries using FQL don't appear to take wildcards either.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

无边思念无边月 2024-11-23 21:57:44

在 FQL 中,您可以按名称搜索页表。但这不允许通配符搜索。使用 graph api,您可以使用以下 url 执行页面搜索:
https://graph.facebook.com/search?type=page&q=test (您可能希望通过在末尾添加 access_token 参数来证明这一点)。第三种选择是使用搜索引擎搜索 Facebook 页面。最后,您可以使用此 Facebook 页面浏览器 https://www.facebook.com/ajax/pages/browser/content.php?country=US&category=10000&start=1050&__a=1" rel="nofollow">网址。

In FQL, you can search the page table by name. This doesn't allow wildcard searches though. Using the graph api, you can perform page searches using this url:
https://graph.facebook.com/search?type=page&q=test (You would want to future proof this by adding an access_token parameter to the end). A third option would by to use search engines to search for Facebook pages. Finally, you could scrape and parse the Facebook page browser by using this url.

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