Reputation: 1671
Facebook Page is a useful channel for us to study something. But I have a problem in filter its posts by date: get all posts by a specified date. The old posts are floated.
Is there any Facebook API supporting to do this task?
Upvotes: 5
Views: 14506
Reputation: 4150
You can use the parameters since
and until
in conjuntion with strtotime
strtotime();
reference: http://php.net/manual/en/function.strtotime.php
Example of usage using Graph API Explorer.
// example will return first 20 posts made between 15th of March, and 5th of April 2013.
example.com/feed?since=15+march+2013&until=5+april+2013&limit=20
Live example:
Additional info:
limit=
Upvotes: 12