Facebook API How To Get All Pages I Like Without Pagination
10,387
Have you tried /me/likes?limit=999
?
You may still need to paginate, but you should be able to get more than 99 items in a single call
Related videos on Youtube
Comments
-
Henson over 1 year
If I like more than 100 pages/things, FB.API('me/likes') returns 99 items and a link to the next paging.
Is it possible to get ALL without the pagination?
Thanks
-
Henson over 11 yearsFor some reasons, I thought it was paginated, but actually it wasn't! I had liked 107 pages, but for some reasons only 99 were returned. When I liked 1 new page, the array returned was 100, so it worked actually. Just wondering why the returned array doesn't match the number of pages I actually like?
-
styfle almost 11 yearsFYI, the unofficial max limit is 5000 results according to this blog post: "the maximum number of results we will fetch before running the visibility checks is 5,000."
-
James Newell over 10 yearsThe reason why you're not seeing all items is because FB fetches the limit number of items (if there is that many items) and then removes items that aren't visible to the API user making the request, therefore lowering the final result count. See more here: developers.facebook.com/blog/post/478
-
fedorqui about 6 yearscould you provide some references to uphold this? See How to Answer
-
Bassem Shahin about 6 yearsI just noticed this in and also next page query, if I insert limit 999 for example, the exact results will be shown as 100 and the next link generated by facebook will contain the limit value also 100
-
fedorqui about 6 yearsthen please edit your answer to explain this! Thanks
-
Adam Sibik over 5 yearsAs of August 2016 FQL is no longer available. source: developers.facebook.com/docs/reference/fql