Reputation: 3111
If I make the query https://graph.facebook.com/[post_id]/comments
, how many comments does facebook return in its data array?
Similarly, what is the default number for feed
, likes
and other 'variable' connections?
I couldn't find documentation on this anywhere, sometimes I see a limit of 25 and sometimes I see a limit of 5000 (etc). I would be glad if someone would point me to the documentation in this case.
Upvotes: 1
Views: 141
Reputation: 4150
If you call https://graph.facebook.com/[post_id]/comments
with no limit it will by default return upto 25 results with paging at bottom of array.
You can override the default by using limit, since & until parameters
https://graph.facebook.com/[post_id]/comments?limit=250
// returns 250 results
https://graph.facebook.com/[post_id]/comments?limit=500&since=2+years+ago&until=now
// returns upto 500 posts, ranging back to 2 years ago, until right now.
https://graph.facebook.com/[post_id]/comments?since=last+week&until=yesterday
// returns upto 25 posts ranging from last week, until yesterday.
refer to https://developers.facebook.com/docs/reference/api/
Upvotes: 2