Michael
Michael

Reputation: 538

How many Facebook Users can be retrieved in a single Graph API Query?

With the following request, it is possible to retrieve multiple Users with the Facebook Graph API:

https://graph.facebook.com?ids=user1, user2, user3,...

Does anyone know if there is a limit for the number of users I can retrieve in a single query?

Upvotes: 3

Views: 822

Answers (1)

cpilko
cpilko

Reputation: 11852

Depending on how and through which servers you are passing the URL, there could be a limit of 255, 1024 or 2083 characters to the maximum URL length. If one existed, this would be your limiting factor. If you're using javascript to make the query, you should probably assume a max length of 1024 characters or less.

Assume you're passing this via a server-side script with no limits on outbound URL length, I'd guess you'll find there is a Facebook limit. Facebook seems to like 5*10n-item limits their services. I'd suspect this one is probably the same, with n=1, 2, or 3.

Upvotes: 1

Related Questions