获取Graph API或FQL中的朋友列表 - 显示缺少一些朋友 [英] Fetching list of friends in Graph API or FQL - Appears to be missing some friends
问题描述
任何机会'我/朋友'
图表api或朋友
FQL表返回 em>只有朋友?
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
推荐答案
在Graph API V1.0
致电 / friends
在用户对象(例如 / me / friends
)或查询 朋友
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
- 停用他们的帐户
- 那些拥有阻止您的应用
- 那些w已禁用所有平台应用程序访问其数据。 - 如果用户启用此选项(见下文),则无法通过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 / friends?limit = 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对象调用 / friends
用户已经授予您的应用程序 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 -
您可以在 Facebook Graph Api v2.0 + - / me / friends返回空或只有朋友谁也使用我的应用程序或 Facebook的更改日志
这篇关于获取Graph API或FQL中的朋友列表 - 显示缺少一些朋友的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!