Method | Description | |
---|---|---|
__construct ( Gajus\Fuss\App $app, string $access_token, self::TYPE_USER | self::TYPE_APP | self::TYPE_PAGE $type ) | ||
extend ( ) : null | Extend a short-lived access token for a long-lived access token. | |
getApp ( ) : Gajus\Fuss\App | ||
getCode ( ) : string | Get the code for the long-lived access token. | |
getExpirationTimestamp ( ) : integer | ||
getInfo ( ) : array | Fetch info about the access token from Facebook. | |
getPlain ( ) : string | ||
getScope ( ) : array | ||
isLong ( ) : boolean | The issued_at field is not returned for short-lived access tokens. | |
makeFromCode ( |
Exchange code for an access token. |
Method | Description | |
---|---|---|
debugToken ( ) : null | Populate the access token information using data retrieved from Facebook. |
public __construct ( Gajus\Fuss\App $app, string $access_token, self::TYPE_USER | self::TYPE_APP | self::TYPE_PAGE $type ) | ||
$app | Gajus\Fuss\App | |
$access_token | string | A string that identifies a user, app, or page and can be used by the app to make graph API calls. |
$type | self::TYPE_USER | self::TYPE_APP | self::TYPE_PAGE |
public getExpirationTimestamp ( ) : integer | ||
return | integer | UNIX timestamp in seconds. |
public static makeFromCode ( |
||
$app | ||
$code | string | The parameter received from the Login Dialog. |
$redirect_url | string | This argument is required and must be the same as the original request_uri that you used when starting the OAuth login process. In case of FB.login, it is empty string. |
return | Gajus\Fuss\AccessToken |