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

Share:
10,387

Related videos on Youtube

Henson
Author by

Henson

It's like the more I learn, the more I don't know.

Updated on June 27, 2022

Comments

  • Henson
    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
    Henson over 11 years
    For 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
    styfle almost 11 years
    FYI, 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
    James Newell over 10 years
    The 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
    fedorqui about 6 years
    could you provide some references to uphold this? See How to Answer
  • Bassem Shahin
    Bassem Shahin about 6 years
    I 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
    fedorqui about 6 years
    then please edit your answer to explain this! Thanks
  • Adam Sibik
    Adam Sibik over 5 years
    As of August 2016 FQL is no longer available. source: developers.facebook.com/docs/reference/fql