Package com.restfb

Class FacebookClient.DebugTokenInfo

java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.FacebookClient.DebugTokenInfo
All Implemented Interfaces:
Serializable
Enclosing interface:
FacebookClient

public static class FacebookClient.DebugTokenInfo
extends AbstractFacebookType

Represents the result of a FacebookClient.debugToken(String) inquiry.

FIXME does this class belong here?

See Debug access tokens

Author:
Broc Seib
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • getAppId

      public String getAppId()
      The application id.
      Returns:
      The id of the application.
    • getApplication

      The application name.
      Returns:
      The name of the application.
    • getExpiresAt

      public Date getExpiresAt()
      The date on which the access token expires.
      Returns:
      The date on which the access token expires.
    • getDataAccessExpiresAt

      Timestamp when app's access to user data expires.
      Returns:
      The date when app's access to user data expires.
    • getIssuedAt

      public Date getIssuedAt()
      The date on which the access token was issued.
      Returns:
      The date on which the access token was issued.
    • isValid

      public Boolean isValid()
      Whether or not the token is valid.
      Returns:
      Whether or not the token is valid.
    • getUserId

      public String getUserId()
      The user id.
      Returns:
      The user id.
    • getScopes

      public List<String> getScopes()
      List of scopes the access token 'contains'
      Returns:
      list of scopes
    • 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
    • getDebugTokenError

      All Error data associated with access token debug.
      Returns:
      debug token error
    • getType

      public String getType()