Open Graph 中的好友列表有限
我收到了我的应用程序的一位用户提出的问题,我怀疑这是否是我们这边的一个编程错误。当请求用户的好友列表时,该 API 仅返回了 580 个好友中的 480 个。好友列表有限制这个数量吗?或者其他 100 个用户是否可能对外部应用程序有非常严格的隐私设置?如果这两个问题都不成立,那么我的编码中一定存在错误,但在我深入研究之前,我想我应该问一下。
I received a question from one of the users of my application, and I am doubting if this is a programming bug on our end. When requesting the friend list of the user, the API only returned 480 out of 580 friends. Is the friend list limited to this number? Or is it likely that the other 100 users have very strict privacy settings regarding external applications? If none of these two questions is true there must be a bug in my coding, but before I dive in I thought I'd ask.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 ?limit=5000 或更高的数量,因为默认限制为 500。否则,请使用 json 响应中包含的下一个和上一个导航链接进行多次调用。您获得 480 而不是 500 的原因可能是因为用户更改了隐私设置或完全选择退出 Facebook 应用程序平台。他们的查询首先获取 500 个朋友,然后删除选择退出的人。
Use ?limit=5000 or a higher amount because the default limit is 500. Otherwise, make multiple calls using the next and prev navigation links included in the json response. The reason you are getting 480 instead of 500 is probably because users have changed their privacy settings or opted out of Facebook application platform entirely. Their query first gets 500 friends, and then removes the people that have opted out.