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 ) )
私は何が欠けていますか??