extend() public method

Upon successfully extending the token, the instance of the object is updated with the long-lived access token.
See also: https://developers.facebook.com/docs/facebook-login/access-tokens#extending
public extend ( ) : null
return null
Beispiel #1
0
 /**
  * @depends testExtendUserAccessToken
  * @expectedException Gajus\Fuss\Exception\AccessTokenException
  * @expectedExceptionMessage Long-lived access token cannot be extended.
  */
 public function testExtendLongLivedUserAccessToken(\Gajus\Fuss\AccessToken $access_token)
 {
     $access_token->extend();
 }