I’m getting this error some times
Fatal error: Uncaught GraphMethodException: Unsupported get request. thrown in base_facebook.php on line 1039
This is how i’m displaying the user name.Is any thing missing here?
$user_id = $facebook->getUser();
$userInfo = $facebook->api("/$user_id");
$accessToken = $_SESSION['fb_sdfsdfsdfsd_access_token'];
echo $userInfo['name']."<br />";
$uid = $userInfo['id'];
You might need to include some more code just to make sure you do in fact have a valid session for the user.
Try something like this: