Getting more than 25 photos from the Facebook Graph API

后端 未结 3 1157
南方客
南方客 2021-01-05 20:10

I\'m trying to retrieve all the photos a user is tagged in using the Graph API but I can only get the latest 25.

Is it possible to get more, and if so, how?

3条回答
  •  难免孤独
    2021-01-05 20:49

    Have you tried adding a limit and offset parameters? Quoting the documentation:

    Paging

    When querying connections, there are several useful parameters that enable you to filter and page through connection data:

    • limit, offset: https://graph.facebook.com/me/likes?limit=3
    • until, since (a unix timestamp or any date accepted by strtotime): https://graph.facebook.com/search?until=yesterday&q=orange

提交回复
热议问题