Facebook-graph-api – Does the /me/friends Facebook open graph API call ever get paginated

facebook-graph-apipagination

I'm testing my app based on a friend list of about 350 people, and not seeing any pagination on /me/friends/.

What's unclear to me (by testing & documentation) is the following:

At how many friends do the graph.facebook.com/me/friends or graph.facebook.com/ID/friends open graph calls starts to paginate, if at all?

Best Answer

look at Graph API Explorer: https://developers.facebook.com/tools/explorer?method=GET&path=me%2Ffriends and scroll to the very bottom - you will there something like:

"paging": { "next": "https://graph.facebook.com/me/friends?format=json&limit=5000&offset=5000&__after_id=XXX" }

which leads me to believe that default page size is 5000

you can set that limit explicitly if you want to: https://developers.facebook.com/tools/explorer?method=GET&path=me%2Ffriends%26limit%3D1

Related Topic