The code below lists the names of all your facebook contacts. Quite handy....
<?
$friends = $facebook->api\_client->friends\_get();
foreach($friends as $friend)
{
$name = $facebook->api\_client->users\_getInfo($friend,'name, status, hometown\_location.city');
echo $name\[0\]\[name\].'<br />';
}
?>
Keep an eye on the blog to see how I evolve this script.