i want to get some info about facebook user on my page, but when i try to do it - it just returns empty strings, my code:
$request = new FacebookRequest( $session, 'GET', '/me' );
$response = $request->execute();
// get response
$graphObject = $response->getGraphObject();
$fbid = $graphObject->getProperty('id'); // To Get Facebook ID
$fbfullname = $graphObject->getProperty('name'); // To Get Facebook full name
$femail = $graphObject->getProperty('email'); // To Get Facebook email ID
$flocation = $graphObject->getProperty('location');
/* ---- Session Variables -----*/
$_SESSION['FBID'] = $fbid;
$_SESSION['FULLNAME'] = $fbfullname;
$_SESSION['EMAIL'] = $femail;
$_SESSION['location'] = $flocation;
/* ---- header location after session ----*/
But it looks like: Facebook empty info
It returns some strings, but last one is empty...