Packagecom.myflashlab.air.extensions.fb
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.



Public Properties
 PropertyDefined By
  appId : String
[read-only] Returns the ID of the Facebook Application associated with this access token.
AccessToken
  dataAccessExpirationDate : Number
[read-only] Gets the date at which user data access expires.
AccessToken
  declinedPermissions : Array
[read-only] Gets the list of permissions declined by the user with this access token.
AccessToken
  expiration : Number
[read-only] Gets the date at which the access token expires.
AccessToken
  expiredPermissions : Array
[read-only] Gets the list of permissions that were expired with this access token.
AccessToken
  grantedPermissions : Array
[read-only] Gets the list of permissions associated with this access token.
AccessToken
  isExpired : Boolean
[read-only] Shows if the token is expired.
AccessToken
  lastRefresh : Number
[read-only] Gets the date at which the token was last refreshed.
AccessToken
  token : String
[read-only] Gets the string representing the access token.
AccessToken
  userId : String
[read-only] Returns the user id for this access token.
AccessToken
Public Methods
 MethodDefined By
  
AccessToken($context:ExtensionContext, $obj:Object)
Usually, you don't need to create an accessToken instance yourself, the native side would do that upon login in but if you have to, don't use the constructor and instead use Facebook.auth.manualInit
AccessToken
  
toString():String
AccessToken
Property Detail
appIdproperty
appId:String  [read-only]

Returns the ID of the Facebook Application associated with this access token.


Implementation
    public function get appId():String
dataAccessExpirationDateproperty 
dataAccessExpirationDate:Number  [read-only]

Gets the date at which user data access expires.


Implementation
    public function get dataAccessExpirationDate():Number
declinedPermissionsproperty 
declinedPermissions:Array  [read-only]

Gets 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.


Implementation
    public function get declinedPermissions():Array
expirationproperty 
expiration:Number  [read-only]

Gets the date at which the access token expires.


Implementation
    public function get expiration():Number
expiredPermissionsproperty 
expiredPermissions:Array  [read-only]

Gets the list of permissions that were expired with this access token.


Implementation
    public function get expiredPermissions():Array
grantedPermissionsproperty 
grantedPermissions:Array  [read-only]

Gets 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.


Implementation
    public function get grantedPermissions():Array
isExpiredproperty 
isExpired:Boolean  [read-only]

Shows if the token is expired.


Implementation
    public function get isExpired():Boolean
lastRefreshproperty 
lastRefresh:Number  [read-only]

Gets the date at which the token was last refreshed. Since tokens expire, the Facebook SDK will attempt to renew them periodically.


Implementation
    public function get lastRefresh():Number
tokenproperty 
token:String  [read-only]

Gets the string representing the access token.


Implementation
    public function get token():String
userIdproperty 
userId:String  [read-only]

Returns the user id for this access token.


Implementation
    public function get userId():String
Constructor Detail
AccessToken()Constructor
public function AccessToken($context:ExtensionContext, $obj:Object)

Usually, you don't need to create an accessToken instance yourself, the native side would do that upon login in but if you have to, don't use the constructor and instead use Facebook.auth.manualInit

Parameters
$context:ExtensionContext
 
$obj:Object

See also

Auth.manualInit()
Method Detail
toString()method
public function toString():String

Returns
String