Maximum limit fetching facebook pages with Graph A

2019-03-26 07:12发布

What is the maximum limit for fetching the facebook pages from an account?

Let's suppose if a facebook account has more than 200 pages to administer. If I try to retrieve facebook pages of that account using '/me/accounts' edge.

Then I get data as well as paging (containing cursors and next, previous page links). What I want to know is If I can set a limit while fetching the facebook pages like '/me/accounts?limit=200' and get all the 200 facebook pages the account has??

I have searched the documentation But there is no clear explanation as for this rate limit.

2条回答
欢心
2楼-- · 2019-03-26 07:46

Basically, there is not any fixed value for limit parameter attached in any of the FB API it can vary according to the performance and need of facebook API as listed in fb link

limit : This is the number of individual objects that are returned in each page. A limit of 0 will return no results. Some edges have an upper maximum on the limit value, for performance reasons. We will return the correct pagination links if that happens.

But by default, they use it as 25 in most of their APIs. And as I have observed you can extend it to 500 but as @luschn said you can't rely on it as they can change it by time, so, use the default value with paging. Also, I have found few Links telling about API limit as first on Quora and another on Facebook may be they will help you.

查看更多
forever°为你锁心
3楼-- · 2019-03-26 07:53

If you mean the API limit, it´s dynamic and not a definitive value. A general rule is "600 calls per 600 seconds, per token & per IP". You can also read this in other Stackoverflow threads, for example: What's the Facebook's Graph API call limit?

If you mean the limit parameter: Afaik they are changing it from time to time. I would not rely on it and just use the default value with paging, which is usually 25.

查看更多
登录 后发表回答