//アクセストークンを変数に格納
$access_token = $facebook->getAccessToken();
//友達の取得
$friendurl = "https://graph.facebook.com/me/friends?access_token=".$access_token;
$doc = file_get_contents($friendurl);
$obj = json_decode($doc,true);
//var_dump($obj['data']);
<h3>あなたの友達</h3> <?php foreach($obj['data'] as $key => $value){ echo("<pre>"); foreach($value as $key => $value) { echo($value.":"); }; echo("</pre>"); }; ?>
パーミッションの設定はここ。
http://tokyo.supersoftware.co.jp/superlabs/2011/04/140212.html