I try to post facebook status to a page using facebook api. i get array return (id) of those post. but its doesn’t show up on page timeline. i try to access facebook feed graph of those page. and i get the result.
fb page : https://www.facebook.com/testscrap?ref=hl (no timeline showing). but i actually have a post accessed from facebook graph ( https://www.facebook.com/348759318542072/posts/350492115035459 )
Where am i going wrong?
here is the code to post :
$feed_dir = "/{$page['page_id']}/feed/";
$msg_body = array (
'access_token' => $page['access_token'],
'message' => 'Jingle bell jingle bell jingle all the way',
'picture' => 'http://assets.kompas.com/data/photo/2012/08/26/0958534620X310.jpg',
);
try {
$result = $this->data['fbinstance']->api($feed_dir, 'post', $msg_body);
jlog($result);
} catch (Exception $e) {
$err_str = $e->getMessage();
jlog($err_str);
}
Copy from the comment to the authors post:
Facebook might sometimes be slow to update the cache, and therefore be slow to display new posts. So a successful request should work, just test with other users.