I would like to get the city graph by facebook php sdk:
public static function getPublicGraphObject($Id)
{
$request = new FacebookRequest(null, 'GET', '/'.$Id);
$response = $request->execute();
$graphObject = $response->getGraphObject();
return $response->getGraphObject()->asArray();
}
because the city is public data, there is no need for session ?
unfortunately I get this error Facebook\FacebookRequest::__construct() must be an instance of Facebook\FacebookSession, null given
? what should I do ?