Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The limit of Facebook's graph api "limit" parameter

I'm fetching a large amount of comments from a public page using Facebook's Graph API.
By default facebook returns 25 comments per response, and uses paging. This causes the need for multiple requests, which is uneccesery as I know ahead there will be a lot of comments.

I read about the "limit" parameter that you can pass to ask for a certain amount of items per response.

I was wondering, what is the limit of that parameter? I'm assuming I can't pass &limit=10000.

like image 201
Niv Avatar asked Feb 14 '13 13:02

Niv


People also ask

What is Facebook API rate limit?

A rate limit is the number of API calls an app or user can make within a given time period. If this limit is exceeded or if CPU or total time limits are exceeded, the app or user may be throttled.

Does Facebook use graph API?

The Graph API is the primary way to get data into and out of the Facebook platform. It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.

Is Facebook Graph API deprecated?

Applies to all versions. Facebook Analytics will no longer be available after June 30, 2021. Additionally, we are deprecating the App Dashboard Plugin for Marketing API. For more information visit the Business Help Center.


1 Answers

There's a different way for fetching comments:

https://graph.facebook.com/<PAGE_ID>_<POST_ID>/comments?limit=500

The maximum value for the limit parameter is 500.

like image 70
twonkeys Avatar answered Oct 05 '22 12:10

twonkeys