Package com.restfb.types
Class DebugTokenInfo
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.DebugTokenInfo
- All Implemented Interfaces:
Serializable
Represents the result of a FacebookClient.debugToken(String)
inquiry.
- Author:
- Broc Seib
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAppId()
The ID of the application this access token is for.Name of the application this access token is for.Timestamp when app's access to user data expires.All Error data associated with access token debug.The date on which the access token expires.List of granular scopes the access token 'contains'The date on which the access token was issued.General metadata associated with the access token.For impersonated access tokens, the ID of the page this token contains.List of scopes the access token 'contains'getType()
The ID of the user this access token is for.boolean
isValid()
Whether the token is valid.void
The ID of the application this access token is for.void
setApplication
(String application) Name of the application this access token is for.void
setDataAccessExpiresAt
(Date dataAccessExpiresAt) Timestamp when app's access to user data expires.void
setIssuedAt
(Date issuedAt) The date on which the access token was issued.void
setMetadata
(JsonObject metadata) General metadata associated with the access token.void
setProfileId
(String profileId) For impersonated access tokens, the ID of the page this token contains.void
void
The ID of the user this access token is for.void
setValid
(boolean isValid) Whether the token is valid.Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Constructor Details
-
DebugTokenInfo
public DebugTokenInfo()
-
-
Method Details
-
getExpiresAt
The date on which the access token expires.- Returns:
- The date on which the access token expires.
-
getScopes
List of scopes the access token 'contains'- Returns:
- list of scopes
-
getGranularScopes
List of granular scopes the access token 'contains'- Returns:
- list of granular scopes
-
getDebugTokenError
All Error data associated with access token debug.- Returns:
- debug token error
-
getAppId
The ID of the application this access token is for.- Returns:
- The id of the application.
-
setAppId
The ID of the application this access token is for. -
getApplication
Name of the application this access token is for.- Returns:
- The name of the application.
-
setApplication
Name of the application this access token is for. -
getDataAccessExpiresAt
Timestamp when app's access to user data expires.- Returns:
- The date when app's access to user data expires.
-
setDataAccessExpiresAt
Timestamp when app's access to user data expires. -
getIssuedAt
The date on which the access token was issued.- Returns:
- The date on which the access token was issued.
-
setIssuedAt
The date on which the access token was issued. -
isValid
Whether the token is valid.- Returns:
- Whether the token is valid.
-
setValid
Whether the token is valid. -
getUserId
The ID of the user this access token is for.- Returns:
- The user id.
-
setUserId
The ID of the user this access token is for. -
getProfileId
For impersonated access tokens, the ID of the page this token contains.- Returns:
- the profile id
-
setProfileId
For impersonated access tokens, the ID of the page this token contains. -
getMetadata
General metadata associated with the access token. Can contain data like 'sso', 'auth_type', 'auth_nonce'- Returns:
- General metadata associated with the access token
-
setMetadata
General metadata associated with the access token. Can contain data like 'sso', 'auth_type', 'auth_nonce' -
getType
-
setType
-