Packagecom.distriqt.extension.facebookapi.events
Classpublic class AccountKitEvent
InheritanceAccountKitEvent Inheritance flash.events.Event

This class details events dispatched relating to the Account Kit

See also

com.distriqt.extension.facebookapi.AccountKit


Public Properties
 PropertyDefined By
  accessToken : AccessToken = null
The access token for the logged in account
AccountKitEvent
  account : Account = null
Account Kit account information
AccountKitEvent
  authorisationCode : String = null
The authorization code that can be exchanged for an access token with the app secret
AccountKitEvent
  errorCode : int = -1
If an error occurred this will contain the error code
AccountKitEvent
  errorMessage : String = null
A description of the error if one occurred
AccountKitEvent
Public Methods
 MethodDefined By
  
AccountKitEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
AccountKitEvent
  
clone():Event
[override]
AccountKitEvent
Public Constants
 ConstantDefined By
  ACCOUNTINFO : String = accountKit:accountInfo
[static] Dispatched after a successful call to getAccountInfo account will contain the details of the logged in account.
AccountKitEvent
  ACCOUNTINFO_ERROR : String = accountKit:accountInfo:error
[static] Dispatched after an error occurred during the call to getAccountInfo
AccountKitEvent
  CANCELLED : String = accountKit:cancelled
[static] Dispatched when the user cancelled the login.
AccountKitEvent
  ERROR : String = accountKit:error
[static] Dispatched when an error occurred.
AccountKitEvent
  LOGIN_WITH_ACCESSTOKEN : String = accountKit:login:accessToken
[static] Dispatched when the login succeeded and returned an access token.
AccountKitEvent
  LOGIN_WITH_AUTHORISATIONCODE : String = accountKit:login:authorisationCode
[static] Dispatched when the login succeeded and returned an authorisation code.
AccountKitEvent
  SETUP_COMPLETE : String = accountKit:setupComplete
[static] Dispatched when Account Kit is initialised and ready to be used.
AccountKitEvent
Property Detail
accessTokenproperty
public var accessToken:AccessToken = null

The access token for the logged in account

accountproperty 
public var account:Account = null

Account Kit account information

authorisationCodeproperty 
public var authorisationCode:String = null

The authorization code that can be exchanged for an access token with the app secret

errorCodeproperty 
public var errorCode:int = -1

If an error occurred this will contain the error code

errorMessageproperty 
public var errorMessage:String = null

A description of the error if one occurred

Constructor Detail
AccountKitEvent()Constructor
public function AccountKitEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Constructor

Parameters
type:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
ACCOUNTINFOConstant
public static const ACCOUNTINFO:String = accountKit:accountInfo

Dispatched after a successful call to getAccountInfo

account will contain the details of the logged in account.

See also

com.distriqt.extension.facebookapi.AccountKit.getAccountInfo()
ACCOUNTINFO_ERRORConstant 
public static const ACCOUNTINFO_ERROR:String = accountKit:accountInfo:error

Dispatched after an error occurred during the call to getAccountInfo

See also

com.distriqt.extension.facebookapi.AccountKit.getAccountInfo()
CANCELLEDConstant 
public static const CANCELLED:String = accountKit:cancelled

Dispatched when the user cancelled the login.

ERRORConstant 
public static const ERROR:String = accountKit:error

Dispatched when an error occurred.

errorCode and errorMessage will contain details on the error that occurred.

LOGIN_WITH_ACCESSTOKENConstant 
public static const LOGIN_WITH_ACCESSTOKEN:String = accountKit:login:accessToken

Dispatched when the login succeeded and returned an access token.

accessToken will contain the returned token.

LOGIN_WITH_AUTHORISATIONCODEConstant 
public static const LOGIN_WITH_AUTHORISATIONCODE:String = accountKit:login:authorisationCode

Dispatched when the login succeeded and returned an authorisation code.

authorisationCode will contain the returned code.

SETUP_COMPLETEConstant 
public static const SETUP_COMPLETE:String = accountKit:setupComplete

Dispatched when Account Kit is initialised and ready to be used.

See also

com.distriqt.extension.facebookapi.AccountKit.setup()