facebook - 无法使用 FQL 获取 Facebook 群组中的所有用户

标签 facebook facebook-graph-api

我正在尝试使用此 FQL 查询获取 Facebook 群组中每个用户的姓名:

select first_name,last_name from user where uid in (select uid from group_member where gid=123)

但是,该群组的 7000 名成员中只有大约 5000 名成员参与其中。我没有出现在结果中,我的一些 friend 也没有出现在结果中。我和我的 friend 都启用了“平台应用程序”设置,因此 FQL 应该能够访问我们的数据。

查询有什么问题?我正在使用 Facebook 的 Graph API Explorer 和 FQL v1.0。

最佳答案

摘自 Facebook 的博客文章 How-To: Paging with the Graph API and FQL :

In addition to the limits mentioned in the documentation for each of the tables and connections listed above, it is helpful to know that the maximum number of results we will fetch before running the visibility checks is 5,000.

因此,这意味着 Facebook 最多只能获取 5,000 个结果,而且在可见性检查之前也是如此。这意味着您将获得的结果数量不能超过限制!

以下是可见性检查如何对结果进行操作(从 blog post 复制):

enter image description here

注意:博客文章有点旧,但我确信它适用于 FQL v1.0。

关于facebook - 无法使用 FQL 获取 Facebook 群组中的所有用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26306320/

相关文章:

升级到 5 后 iOS Facebook 登录不起作用

android - Facebook publish_action

javascript - 护照-facebook-token 返回 InternalOAuthError : Failed to fetch user profile when verifying the token

facebook - Grails - Spring Security/Social - Facebook 插件 setAccessToken 和 getAccessToken

Android Facebook 登录 setReadPermissions 不工作

Facebook 从/我/ friend 返回空数组

iphone - 使用 Facebook iOS SDK 3.0 安排帖子

iphone - 当“应用程序不在后台运行”设置为"is"时,无法使用 facebook ios sdk 在 facebook 墙上发帖

node.js - Facebook Page Tab 应用中的 Node Passport-facebook 登录

ios - 如何在 Swift 中导入 FBSession.h