Interface FacebookAccessToken

interface FacebookAccessToken {
    applicationId: string;
    dataAccessExpirationTime: string;
    declinedPermissions: string[];
    expiredPermissions: string[];
    expires: number;
    graphDomain: string;
    isDataAccessExpired: boolean;
    isExpired: boolean;
    isInstagramToken: boolean;
    lastRefresh: number;
    permissions: string[];
    token: string;
    userId: string;
}

Properties

applicationId: string

The ID of the Facebook Application associated with this access token.

dataAccessExpirationTime: string

The date at which user data access expires.

declinedPermissions: string[]

The array of permissions declined by the user with this access token. It represents the entire set of permissions that have been requested and declined. Note that the most up-to-date list of permissions is maintained by Facebook, so this list may be outdated if permissions have been granted or declined since the last time an AccessToken object was created.

expiredPermissions: string[]

The array of permissions that were expired with this access token.

expires: number

The date at which the access token expires.

graphDomain: string

The graph domain for this access token.

isDataAccessExpired: boolean

true if the user data access is expired.

isExpired: boolean

true if the token is expired.

isInstagramToken: boolean

true if the token is an Instagram access token, based on the token's graphDomain parameter.

lastRefresh: number

The date at which the token was last refreshed. Since tokens expire, the Facebook SDK will attempt to renew them periodically.

permissions: string[]

The array of permissions associated with this access token. Note that the most up-to-date list of permissions is maintained by Facebook, so this array may be outdated if permissions have been added or removed since the time the FacebookAccessToken object was created. For more information on permissions, see Permissions Reference.

token: string

The string representing the access token.

userId: string

The user id for this access token.