本文介绍了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/friendsasking for user name and profile pic.

通常我回到所有我的朋友列表,直到几千,直到它开始把朋友放到下一页。这是很好的,因为我的大多数用户在一个电话中获得了朋友。

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星期二(PDT) - 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资源管理器重复使用

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)

(旁注:,所以大概用户总共会少于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个朋友每页?这是怎么回事?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 10:19