php - Get facebook posts for specific date -
i have :
$config = array(); $config['appid'] = ''; $config['secret'] = ''; $config['fileupload'] = false; // optional $facebook = new facebook($config); $pageid = ""; // can access various parts of graph, starting feed $pagefeed = $facebook->api("/" . $pageid . "/feed");
i want posts specific date don't know how this. if can me great.
you can use time-based pagination. can read more here (read time-based pagination). there nice how-to paging graph api , fql can used reference.
here simple call pages through posts on chick-fil-a page:
https://graph.facebook.com/chickfila/posts?limit=5&since={since}&until={until}access_token={access_token}
where
{since} unix timestamp or strtotime data value points start of range of time-based data.
{until} unix timestamp or strtotime data value points end of range of time-based data.
{access_token} users access token.
Comments
Post a Comment