获取的图形API或FQL好友列表 - 似乎缺少一些朋友 [英] Fetching list of friends in Graph API or FQL - Appears to be missing some friends
问题描述
任何机会,在我的/朋友
图形API或朋友
FQL表返回的部分只有好友?
Any chance the 'me/friends'
graph api or friends
FQL table return some friends only?
我检查的结果,这比我在facebook.com
I've checked the results and it's slightly less than the count I see on facebook.com
推荐答案
上的 /朋友 = nofollow的> User对象(如 / ME /朋友
)或 朋友
FQL表应该返回该用户的所有的朋友,除了
In Graph API V1.0
A call to /friends
on a User object (e.g. /me/friends
) or a query of the friend
FQL table should return all friends of that user except
- 那些谁拥有停用其账户
- 那些谁拥有阻止你的应用程序
- 这些谁已禁用访问其数据的所有平台的应用程序。 - 如果用户启用这个选项(见下文),你无法通过API访问有关该用户的任何信息,包括他们的基本信息,他们做出的帖子等,他们的不会显示在通过API应用的用户的朋友列表。
- Those who have deactivated their accounts
- Those who have blocked your app
- Those who have disabled all Platform apps from accessing their data. - If a user enables this option (see below) you can't access any information about that user via the API, including their basic info, posts they make, etc. They won't appear in the friends list of your app's user via the API.
如果你发现朋友是从它几乎可以肯定这些原因之一响应失踪,在我的经验,大多数人都在问这个问题是想询问第三种情况。
If you find friends are missing from the response it's almost certainly for one of those reasons, and in my experience most people asking this question are asking about the third case.
删除平台选择权,目前正在的隐私设置 - >广告,应用和放大器;网站 - >关闭打开和关闭,Facebook的使用应用,插件和网站能力的
The option to remove platform option is currently under Privacy Settings -> Ads, Apps & Websites -> 'Turn off your ability to use apps, plugins, and websites on and off Facebook
如果你没有得到所有的朋友在一个单一的电话,你肯定它的那些原因之一,不是因为,检查是否有一个限制
参数您的查询 - 并增加它,如果它低于你认为应该出现的朋友数量。
If you're not getting all friends in a single call and you're sure it's not because of one of those reasons, check if you have a limit
parameter in your query - and increase it if it's less than the number of friends you think should be appearing.
例如。 / ME /朋友?极限= 5000
所允许的朋友的最大数量,5000
e.g. /me/friends?limit=5000
for the maximum number of friends allowed, 5000
请注意,该朋友算将包括不能在列表中检索到的用户(例如,用户FQL表的 FRIEND_COUNT
字段)
Note that the friends count will include users which can't be retrieved in the list (e.g. the friend_count
field of the User FQL table)
User对象上的调用 /朋友
会,如果用户已授予您的应用程序的 user_friends
许可,返回该用户的朋友谁也授予您的应用程序的 user_friends
许可 -
A call to /friends
on a User object will, if the user has granted your app the user_friends
permission, return the friends of that user who have also granted your app the user_friends
permission -
您可以阅读更多关于从V1.0到V2.0的<一个变化href=\"http://stackoverflow.com/questions/23417356/facebook-graph-api-v2-0-me-friends-returns-empty-or-only-friends-who-also-use-m\">Facebook图形API v2.0的我/朋友返回空,或者只有朋友谁也使用我的应用或上的 Facebook的更新日志
You can read more about the change from v1.0 to v2.0 in Facebook Graph Api v2.0 me/friends returns empty, or only friends who also use my app or on Facebook's changelog
这篇关于获取的图形API或FQL好友列表 - 似乎缺少一些朋友的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!