I am trying to get page post data using facebook PHP SDK v4.0.5. My app is also approved for manage_pages permission. Now problem is with the response i am getting from api function:
$fb = new Facebook\Facebook(array(
'app_id' => $appID,
'app_secret' => $appSecret,
'default_graph_version' => 'v2.3',
));
$responce = $fb->get("/thealonekhaan/feed", $access_token);
echo '<pre>';print_r($responce);exit;
This api call is returning following data:
[data] => Array
(
[0] => Array
(
[message] => new post
[created_time] => 2015-09-21T07:23:33+0000
[id] => 106750526111915_841900919263535
)
[1] => Array
(
[story] => Alone KHAN shared a link.
[created_time] => 2015-08-28T06:42:01+0000
[id] => 106750526111915_828769187243375
)
[2] => Array
(
[message] => hat trick B|
[story] => Alone KHAN shared Hamza Ali Abbasi's video.
[created_time] => 2015-08-28T06:02:49+0000
[id] => 106750526111915_828762167244077
)
.....
It is showing only 3 or 4 page post item and i need all the data of post like picture, post link, post image, category, comments, likes etc. How can i get these page post items.