Facebook 图形 API“好友"请求现在每页只返回 25 个好友?这是怎么回事? [英] Facebook graph API 'friends' request now only returning 25 friends per page? What's going on?

查看:24
本文介绍了Facebook 图形 API“好友"请求现在每页只返回 25 个好友?这是怎么回事?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序(游戏)已经在 Facebook 上运行了一段时间.我首先通过图形 API 调用请求好友列表:my-uid/friends要求提供用户名和个人资料图片.

My application(game) has been running on Facebook for some time. I start by requesting a friends list via the graph API call: my-uid/friends asking for user name and profile pic.

通常我会得到一个包含数千个朋友的列表,直到它开始将朋友放到下一页.这很好,因为我的大多数用户在 1 次通话中结识了朋友.

Normally I get back a list of all my friends up to a few thousand, until it starts putting friends on to the next page. Which is nice as most of my users get friends in 1 call.

然而,突然之间,应用程序没有任何变化.大约 40 分钟前(星期二(太平洋夏令时)18:40 - 2012 年 5 月 2 日)我开始收到回复,每个页面"只有 25 个朋友!

Suddenly however, and with no changes to the app. about 40 minutes ago (18:40 Tuesday (PDT) - 2nd May 2012) I started getting responses with only 25 friends per 'page'!

我仍然可以通过多次调用获取我的整个朋友列表,但游戏目前没有正确设置来做到这一点.谁能告诉我为什么突然改变?其他任何人都看到过类似的问题,我如何获得列表,让我像以前一样每页最多 5000 个朋友.

I can still get my whole friends list using multiple calls, but the game is not currently set up to do that properly. Can anyone tell me why the sudden change? Anyone else seen similar problems and how do I get the list to give me up to 5000 friends per page like it used to.

可使用 Graph API Explorer 重现

Reproducible using the Graph API Explorer

推荐答案

我不知道还有什么要告诉你的;也许返回的默认号码已更改,但是当我尝试时,调用 /me/friends?limit=5000 会为我返回完整列表(但我的朋友列表是 >500 和 <1000 ,所以也许它在途中的某个地方切断了)

I don't know what else to tell you; perhaps the default number returned has changed, but when I try, a call to /me/friends?limit=5000 returns the full list for me (but my friends list is >500 and < 1000 , so maybe it cuts off somewhere along the way)

(旁注:平均好友数有被发现是 ~190 所以大概大多数用户无论如何都会少于 500,并且必须超过 500 页面将是一个边缘情况

(Side note: the average number of friends has been found to be ~190 so presumably most users will have less than 500 anyway, and having to page above 500 would be an edge case

这篇关于Facebook 图形 API“好友"请求现在每页只返回 25 个好友?这是怎么回事?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆