没有收到所有用户帖子

时间:2016-02-25 23:02:28

标签: php facebook facebook-graph-api

我正在尝试从Facebook用户收集用户信息。我得到以下内容。我想知道下面的数据,我怎样才能真正访问这74个帖子?

{
  "story": "Bob K. and 74 others wrote on your Timeline.",
  "created_time": "2015-07-22T12:22:58+0000",
  "id": "10203067968xxxx73_10206102965xxxx"
   },

要获得此结果,我在GRAPH API Explorer中输入以下内容:

me/feed?since=1434340800&until=1439524800

我现在正在使用PHP来遍历帖子。以下内容适用于其他情况,但不适用于此情况。

 $posts_response = $posts_request->getGraphEdge()->asArray();

foreach ($posts_response as $element) {


    $FB_ID =  $element["id"]; //id assigned by Facebook                                                            
    $FB_OBJECTID = $element["object_id"]; //object id assigned by Facebook                                         

    $FB_MESSAGE=  $element["message"]; //content of the post                                                       
}

谢谢!

0 个答案:

没有答案