original_string: protected function facebook(Oauth2Service\Facebook $facebook, TokenInterface $token)
      {
          $user = json_decode($facebook->request('/me'), true);
  
          $loginRequest = new LoginRequest(
              'facebook',
              $user['id'],
              $token->getAccessToken(),
              $token->getEndOfLife() > 0 ? $token->getEndOfLife() : 0,
              $token->getRefreshToken(),
              [$user['email']]
          );
  
          return $loginRequest;
      }
code: protected function facebook(Oauth2Service\Facebook $facebook, TokenInterface $token)
      {
          $user = json_decode($facebook->request('/me'), true);
  
          $loginRequest = new LoginRequest(
              'facebook',
              $user['id'],
              $token->getAccessToken(),
              $token->getEndOfLife() > 0 ? $token->getEndOfLife() : 0,
              $token->getRefreshToken(),
              [$user['email']]
          );
  
          return $loginRequest;
      }
code_tokens: protected function facebook ( Oauth2Service \ Facebook $ facebook , TokenInterface $ token ) { $ user = json_decode ( $ facebook -> request ( '/me' ) , true ) ; $ loginRequest = new LoginRequest ( 'facebook' , $ user [ 'id' ] , $ token -> getAccessToken ( ) , $ token -> getEndOfLife ( ) > 0 ? $ token -> getEndOfLife ( ) : 0 , $ token -> getRefreshToken ( ) , [ $ user [ 'email' ] ] ) ; return $ loginRequest ; }
docstring: Request access token from Facebook and return a LoginRequest object for logging into our app
  
  @param  Oauth2Service\Facebook $facebook
  @param  TokenInterface         $token
  @return LoginRequest
docstring_tokens: Request access token from Facebook and return a LoginRequest object for logging into our app