This piece of code used to work as expected, but now it seems i can\'t retrieve the user name the same way:
$uid = $facebook->getUser(); // returns the faceb
So how to retrieve the user name in facebook?
What about this :
$pageContent = file_get_contents('http://graph.facebook.com/USERID'); $parsedJson = json_decode($pageContent); echo $parsedJson->name;