I am using the Graph API to fetch data for a specific query.
function getFeed($access_token,$until)
{
$result = $this->facebook->api(
'/me/home',
'GET',
array(
'access_token' => $access_token,
'limit' => 5,
'until' => $until
)
);
return $result;
}
I'm calling this function through jQuery and fetch 5 post in every call. But it is not giving exact result after two-three calls. than It goes two-three days before(for e.g 1 day ago to direct 4 days ago , for e.g today is Tuesday so it will give feeds of Tuesday than it skips Monday and directly jump to Sunday's feed). And then it will stop giving data and give the empty result.
If i increased the limit from 5 to 25 then it will give some what accurate result but than it will give me only last 5 days posts and not more than that and then it will give empty result
So is there any limit that how much data we can fetch at times with graph API?
Is it good to fetch more posts on one call ? ( for e.g from 5 to 25 or more that that) does it make any difference?
Which is the best practice to paginate in Graph API?