$user = $request->getGraphObject->asArray();
What's wrong with this line, was trying to convert the returned data of the use to an array.
$session = new Facebook\FacebookSession($_SESSION['facebook']);
$request = new Facebook\FacebookRequest($session, 'GET', '/me');
$request = $request->execute();
$user = $request->getGraphObject->asArray();
print_r($user);
I am getting this error.. [14-Jan-2016 10:11:06 America/New_York] PHP Notice: Undefined property: Facebook\FacebookResponse::$getGraphObject in /home/skoolynk/public_html/app/init.php on line 15 [14-Jan-2016 10:11:06 America/New_York] PHP Fatal error: Call to a member function asArray () on a non-object in /home/skoolynk/public_html/app/init.php on line 15
$request->getGraphObject()work (i.e. a method call)?