Class DebugTokenInfo

All Implemented Interfaces:
Serializable

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

See Debug access tokens
Author:
Broc Seib
See Also:
  • Constructor Details

  • Method Details

    • getExpiresAt

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

      public List<String> 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

      public String getAppId()
      The ID of the application this access token is for.
      Returns:
      The id of the application.
    • setAppId

      public void setAppId(String appId)
      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

      public void setApplication(String application)
      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

      public void setDataAccessExpiresAt(Date dataAccessExpiresAt)
      Timestamp 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.
    • setIssuedAt

      public void setIssuedAt(Date issuedAt)
      The date on which the access token was issued.
    • isValid

      public boolean isValid()
      Whether the token is valid.
      Returns:
      Whether the token is valid.
    • setValid

      public void setValid(boolean isValid)
      Whether the token is valid.
    • getUserId

      public String getUserId()
      The ID of the user this access token is for.
      Returns:
      The user id.
    • setUserId

      public void setUserId(String userId)
      The ID of the user this access token is for.
    • getProfileId

      public String getProfileId()
      For impersonated access tokens, the ID of the page this token contains.
      Returns:
      the profile id
    • setProfileId

      public void setProfileId(String profileId)
      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

      public void setMetadata(JsonObject metadata)
      General metadata associated with the access token. Can contain data like 'sso', 'auth_type', 'auth_nonce'
    • getType

      public String getType()
    • setType

      public void setType(String type)