**i’m trying to fetch my friends list with graph explorer using this query
/me/friends but only 25 out of 950 friends are returned in the response**
i need to fetch my friend id’s to do something .
When i searched for the solution i found that all my friends must grant a user_friends permission to me , but these 25 friends doesn’t give me any permissions yet why they returned and others no ?
is there is a way to return all my friends id’s without their permission ?
2
Answers
I assume you did not select YOUR App in the API Explorer, but the default API Explorer App. Which means that at least 25 of your friends authorized the API Explorer App with the
user_friends
permission. If you want to get more data, use thelimit
parameter or paging: https://developers.facebook.com/docs/graph-api/using-graph-api/#pagingFor example:
/me/friends?limit=50
Keep in mind that the API Explorer App is for testing only. In general, it is impossible to get all friends without their permission, you would not be allowed to do anything with their data anyway for privacy reasons. More information: Facebook Graph Api v2.0+ – /me/friends returns empty, or only friends who also use my app
Try adding a limit query parameter to the request as suggested in this question.
Facebook graph API 'friends' request now only returning 25 friends per page? What's going on?