Packagecom.distriqt.extension.facebook.login
Classpublic class AccessToken
InheritanceAccessToken Inheritance Object

This class represents an immutable access token for using Facebook APIs. It also includes associated metadata such as expiration date and permissions.

For more information on access tokens, see Access Tokens.



Public Properties
 PropertyDefined By
  applicationId : String = null
The ID of the Facebook Application associated with this access token
AccessToken
  declinedPermissions : Array
The list of permissions declined by the user with this access token.
AccessToken
  expirationTimestamp : Number = 0
The timestamp at which the access token expires
AccessToken
  graphDomain : String
The graph domain where this access token is valid.
AccessToken
  permissions : Array
The list of permissions associated with this access token.
AccessToken
  token : String = null
The string representing the access token
AccessToken
  userId : String = null
Returns the user id for this access token
AccessToken
Public Methods
 MethodDefined By
  
Constructor
AccessToken
  
hasGranted(permission:String):Boolean
Checks the current permissions whether the specified permission has been granted with this access token.
AccessToken
Property Detail
applicationIdproperty
public var applicationId:String = null

The ID of the Facebook Application associated with this access token

declinedPermissionsproperty 
public var declinedPermissions:Array

The list 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.

expirationTimestampproperty 
public var expirationTimestamp:Number = 0

The timestamp at which the access token expires

graphDomainproperty 
public var graphDomain:String

The graph domain where this access token is valid.

permissionsproperty 
public var permissions:Array

The list of permissions associated with this access token. Note that the most up-to-date list of permissions is maintained by Facebook, so this list may be outdated if permissions have been added or removed since the time the AccessToken object was created. For more information on permissions, see https://developers.facebook.com/docs/reference/login/#permissions.

tokenproperty 
public var token:String = null

The string representing the access token

userIdproperty 
public var userId:String = null

Returns the user id for this access token

Constructor Detail
AccessToken()Constructor
public function AccessToken()

Constructor

Method Detail
hasGranted()method
public function hasGranted(permission:String):Boolean

Checks the current permissions whether the specified permission has been granted with this access token.

Parameters

permission:String — The permission string to check

Returns
Booleantrue if the permission has been granted and false if not.

See also

com.distriqt.extension.facebookapi.FacebookAPI.requestPermissions()