I’m requesting this:
https://graph.facebook.com//likes
and I’d like to know how many items there are so that I can parallelize page requests.
For example, if there were 5000 items, I might make 5 calls w/ 1000 items per page.
I see there’s limit/offset, but I don’t see a way to know how many pages to request without trying serially.
Is there a way?
Probably you can try using fql to get the like_count or something similar to that. I am not quite certain if it will definitely work.
I had once used a query like this https://graph.facebook.com/fql?q=SELECT friend_count FROM user WHERE uid={any id} which gets the friend_count and it surprisingly worked.
Sadly fql is not so well documented, and trial and error is how I got the above.