private function getFacebookSession($accessToken)
	{
		$facebookSession = new FacebookSession($accessToken);

		try 
		{
		  $facebookSession->validate();

		  return $facebookSession;
		} 
		catch (FacebookRequestException $ex)
		{
			throw new FacebookException($ex->getMessage());
		}
		catch (\Exception $ex) 
		{
			throw new FacebookException($ex->getMessage());
		}
	}
private function getFacebookSession($accessToken)
	{
		$facebookSession = new FacebookSession($accessToken);

		try 
		{
		  $facebookSession->validate();

		  return $facebookSession;
		} 
		catch (FacebookRequestException $ex)
		{
			throw new FacebookException($ex->getMessage());
		}
		catch (\Exception $ex) 
		{
			throw new FacebookException($ex->getMessage());
		}
	}
private function getFacebookSession ( $ accessToken ) { $ facebookSession = new FacebookSession ( $ accessToken ) ; try { $ facebookSession -> validate ( ) ; return $ facebookSession ; } catch ( FacebookRequestException $ ex ) { throw new FacebookException ( $ ex -> getMessage ( ) ) ; } catch ( \ Exception $ ex ) { throw new FacebookException ( $ ex -> getMessage ( ) ) ; } }
Get the FacebookSession through an access_token.

@param  string $accessToken
@return FacebookSession
Get the FacebookSession through an access_token .