Facebook Paging for "me/friends"?

When you get response from “me/friends” it has a “next” field with an URL. Does this imply I might have to page through a users friend list? This next url has parameter offset=5000, implying it is only needed if user has more than 5000 friends in which case I can’t be bothered. Is this a correct assumption?

“next”: “https://graph.facebook.com/xxx/friends?fields=name,installed&format=json&access_token=xxx&limit=5000&offset=5000&__after_id=12345

Thanks,

Jon

It looks like a bug in corona facebook library.
I think the response should contain what’s under the data key of the json response.

If you have less than 5000 friends you can ignore the “next” entry.  me/friends will only return up to 5000 people in a single call.  You could parse off the rest of the URL to pass as keys to your next me/friends call to get the next batch of 5000.

It looks like a bug in corona facebook library.
I think the response should contain what’s under the data key of the json response.

If you have less than 5000 friends you can ignore the “next” entry.  me/friends will only return up to 5000 people in a single call.  You could parse off the rest of the URL to pass as keys to your next me/friends call to get the next batch of 5000.