Package | com.myflashlab.air.extensions.fb |
Class | public class AccessToken |
Inheritance | AccessToken Object |
Property | Defined 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 |
Method | Defined 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 |
appId | property |
appId:String
[read-only] Returns the ID of the Facebook Application associated with this access token.
public function get appId():String
dataAccessExpirationDate | property |
dataAccessExpirationDate:Number
[read-only] Gets the date at which user data access expires.
public function get dataAccessExpirationDate():Number
declinedPermissions | property |
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.
public function get declinedPermissions():Array
expiration | property |
expiration:Number
[read-only] Gets the date at which the access token expires.
public function get expiration():Number
expiredPermissions | property |
expiredPermissions:Array
[read-only] Gets the list of permissions that were expired with this access token.
public function get expiredPermissions():Array
grantedPermissions | property |
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.
public function get grantedPermissions():Array
isExpired | property |
isExpired:Boolean
[read-only] Shows if the token is expired.
public function get isExpired():Boolean
lastRefresh | property |
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.
public function get lastRefresh():Number
token | property |
token:String
[read-only] Gets the string representing the access token.
public function get token():String
userId | property |
userId:String
[read-only] Returns the user id for this access token.
public function get userId():String
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
$context:ExtensionContext | |
$obj:Object |
See also
toString | () | method |
public function toString():String
ReturnsString |