Packagecom.myflashlab.air.extensions.facebook
Classpublic class FBEvent
InheritanceFBEvent Inheritance flash.events.Event



Public Properties
 PropertyDefined By
  graphRequest : String
[read-only] When calling a graph, you should listen to FBEvent.GRAPH_RESPONSE and FBEvent.GRAPH_RESPONSE_ERROR to know about the graph result And to be able to identify your last graph request, you might use this property.
FBEvent
Public Constants
 ConstantDefined By
  GRAPH_RESPONSE : String = onGraphResponse
[static] Dispatches after you call a command on the graph.
FBEvent
  GRAPH_RESPONSE_ERROR : String = onGraphResponseError
[static] Dispatches if there's connection problem or command problem while using the graph API
FBEvent
  INVITE_CANCELED : String = onInviteCanceled
[static] Dispatches after the invitation dialog has been closed and the invitation has been canceled by the user.
FBEvent
  INVITE_DONE : String = onInviteSuccess
[static] Dispatches after the invitation dialog has been closed and the invitaion has been sent successfully.
FBEvent
  INVITE_ERROR : String = onInviteError
[static] Dispatched if the invitation dialog faced a problem!
FBEvent
  LIKE_BTN_CLICKED : String = likeBtnClicked
[static] Dispatched when you click the like button
FBEvent
  LIKE_BTN_CREATED : String = likeBtnAvailable
[static] Dispatches after the like button is created and ready for you to set its position on your app
FBEvent
  LIKE_BTN_ERROR : String = likeBtnError
[static] Dispatches if the like button creations was not successfull
FBEvent
  LIKE_BTN_UPDATED : String = likeBtnUpdated
[static] Dispatches after the like button url or style has been updated
FBEvent
  LOGIN_CANCELED : String = onLoginCanceled
[static] Dispatches when Facebook login has been canceled
FBEvent
  LOGIN_DONE : String = onLoginSuccess
[static] Dispatches when Facebook login has been successfull
FBEvent
  LOGIN_ERROR : String = onLoginError
[static] Dispatches if there's been an error while logging in
FBEvent
  SHARING_CANCELED : String = onSharingCanceled
[static] Dispatches after the sharing dialog has been canceled.
FBEvent
  SHARING_DONE : String = onSharingSuccess
[static] Dispatches after the sharing dialog is done.
FBEvent
  SHARING_ERROR : String = onSharingError
[static] Dispatches if there's an error in sharing.
FBEvent
  UPDATE_USER_PROPERTIES_ERROR : String = onUpdateUserPropertiesError
[static]
FBEvent
  UPDATE_USER_PROPERTIES_SUCCESS : String = onUpdateUserPropertiesSuccess
[static]
FBEvent
Property Detail
graphRequestproperty
graphRequest:String  [read-only]

When calling a graph, you should listen to FBEvent.GRAPH_RESPONSE and FBEvent.GRAPH_RESPONSE_ERROR to know about the graph result And to be able to identify your last graph request, you might use this property.


Implementation
    public function get graphRequest():String
Constant Detail
GRAPH_RESPONSEConstant
public static const GRAPH_RESPONSE:String = onGraphResponse

Dispatches after you call a command on the graph. The response will always be a json which you can parse and get information from it.

GRAPH_RESPONSE_ERRORConstant 
public static const GRAPH_RESPONSE_ERROR:String = onGraphResponseError

Dispatches if there's connection problem or command problem while using the graph API

INVITE_CANCELEDConstant 
public static const INVITE_CANCELED:String = onInviteCanceled

Dispatches after the invitation dialog has been closed and the invitation has been canceled by the user.

INVITE_DONEConstant 
public static const INVITE_DONE:String = onInviteSuccess

Dispatches after the invitation dialog has been closed and the invitaion has been sent successfully.

INVITE_ERRORConstant 
public static const INVITE_ERROR:String = onInviteError

Dispatched if the invitation dialog faced a problem!

LIKE_BTN_CLICKEDConstant 
public static const LIKE_BTN_CLICKED:String = likeBtnClicked

Dispatched when you click the like button

LIKE_BTN_CREATEDConstant 
public static const LIKE_BTN_CREATED:String = likeBtnAvailable

Dispatches after the like button is created and ready for you to set its position on your app

LIKE_BTN_ERRORConstant 
public static const LIKE_BTN_ERROR:String = likeBtnError

Dispatches if the like button creations was not successfull

LIKE_BTN_UPDATEDConstant 
public static const LIKE_BTN_UPDATED:String = likeBtnUpdated

Dispatches after the like button url or style has been updated

LOGIN_CANCELEDConstant 
public static const LOGIN_CANCELED:String = onLoginCanceled

Dispatches when Facebook login has been canceled

LOGIN_DONEConstant 
public static const LOGIN_DONE:String = onLoginSuccess

Dispatches when Facebook login has been successfull

LOGIN_ERRORConstant 
public static const LOGIN_ERROR:String = onLoginError

Dispatches if there's been an error while logging in

SHARING_CANCELEDConstant 
public static const SHARING_CANCELED:String = onSharingCanceled

Dispatches after the sharing dialog has been canceled. user must be logged in for Facebook SDK to know if sharing has been canceled.

SHARING_DONEConstant 
public static const SHARING_DONE:String = onSharingSuccess

Dispatches after the sharing dialog is done. if you are not logged in, this will be dispatched even if you have cancelled sharing! if it is important to you to know if your user has cancelled sharing dialog or not, you have to log him in before sharing.

SHARING_ERRORConstant 
public static const SHARING_ERROR:String = onSharingError

Dispatches if there's an error in sharing.

UPDATE_USER_PROPERTIES_ERRORConstant 
public static const UPDATE_USER_PROPERTIES_ERROR:String = onUpdateUserPropertiesError

UPDATE_USER_PROPERTIES_SUCCESSConstant 
public static const UPDATE_USER_PROPERTIES_SUCCESS:String = onUpdateUserPropertiesSuccess