我正在尝试使用 facebook PHP SDK v4.0.5 获取页面发布数据。我的应用程序也获得了 manage_pages 权限。现在问题是我从 api 函数得到的响应:
$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;
此 api 调用返回以下数据:
[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
)
......
它只显示 3 或 4 页的帖子项目,我需要所有的帖子数据,如图片、帖子链接、帖子图片、类别、评论、喜欢等。我怎样才能获得这些页面帖子项目。