Package | com.distriqt.extension.facebook.login |
Class | public class AccessToken |
Inheritance | AccessToken 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.
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
Constructor
| AccessToken | ||
hasGranted(permission:String):Boolean
Checks the current permissions whether the specified permission has been
granted with this access token. | AccessToken |
applicationId | property |
public var applicationId:String = null
The ID of the Facebook Application associated with this access token
declinedPermissions | property |
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.
expirationTimestamp | property |
public var expirationTimestamp:Number = 0
The timestamp at which the access token expires
graphDomain | property |
public var graphDomain:String
The graph domain where this access token is valid.
permissions | property |
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.
token | property |
public var token:String = null
The string representing the access token
userId | property |
public var userId:String = null
Returns the user id for this access token
AccessToken | () | Constructor |
public function AccessToken()
Constructor
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
|
Boolean — true if the permission has been granted and false if not.
|
See also