Fetching facebook posts for date range longer than 15 days response always returns next beyond amount of posts
2

Im fetching posts for a facebook page, and looping using the next in the posts response, everything works as expected when the date range is 15 days or less, when the date range is increased to 16 days the response always returns a next and gets stuck in an infinite loop of paging, the response always returns a next even though it should have fetched all posts for the 16 days and no next should have been returned in the request response

Simon
Asked about a year ago
Selected Answer
2

I am having the same issue, this does not happen for every page_id but it happens for one, I don't know how to deal with this?

We can limit by 15 days but the date parameter is depended on created_time. If some posts which was created 15 days before gets updated, we will miss it. This is a potential problem if we use the way.

March 31 at 8:22 AM
Emre