0

我正在尝试从 facebook 获取我最后的帖子以存储在数据库或数组中。我试图通过这样做来获取自己的更新:

<?

    require_once("src/facebook.php");

    $config = array();
    $config['appId'] = 'appId';
    $config['secret'] = 'secretId';
    $config['fileUpload'] = false; // optional

    $facebook = new Facebook($config);

    $feed = $facebook->api('/myUserId/feed');

    print_r($feed);

?>

但它只返回我的个人信息,而不是我的更新,类似于:

Array ( [data] => Array ( [0] => Array ( [id] => ################## [from] => Array ( [name] => My Name [id] => My Id ) [story] => My Name likes a photo. [story_tags] => Array ( [0] => Array ( [0] => Array ( [id] => myId [name] => My Name [offset] => 0 [length] => 13 [type] => user ) ) ) [type] => status [application] => Array ( [name] => Likes [id] => ######## ) [created_time] => 2012-09-27T13:31:52+0000 [updated_time] => 2012-09-27T13:31:52+0000 [comments] => Array ( [count] => 0 ) ) ) [paging] => Array ( [previous] => https://graph.facebook.com/#######/feed?limit=25&since=1348752712&__previous=1 [next] => https://graph.facebook.com/#########/feed?limit=25&until=1348752711 ) ) 

我错过了什么??

4

0 回答 0