Open Graph 中的好友列表有限

发布于 2024-12-06 18:24:31 字数 178 浏览 1 评论 0原文

我收到了我的应用程序的一位用户提出的问题,我怀疑这是否是我们这边的一个编程错误。当请求用户的好友列表时,该 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 技术交流群。

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

发布评论

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

评论(1

北方。的韩爷 2024-12-13 18:24:31

使用 ?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.

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