Packagecom.distriqt.extension.facebook.share
Interfacepublic interface GameRequestDialog extends flash.events.IEventDispatcher

Provides functionality to share content via the Facebook Game Request Dialog Note this dialog is deprecated and should only be used by legacy games



Public Properties
 PropertyDefined By
  canShow : Boolean
[read-only] Indicates whether it is possible to show the dialog for specified GameRequestContent.
GameRequestDialog
Public Methods
 MethodDefined By
  
show(content:Object):Boolean
Shows a game request dialog using the provided content.
GameRequestDialog
Events
 Event Summary Defined By
   Dispatched when the user cancelled a Game Request dialog GameRequestDialog
   Dispatched when the Facebook Game Request dialog has completed successfully.GameRequestDialog
   Dispatched when an error occurred posting from a dialog errorMessage will contain details on the error that occurred.GameRequestDialog
Property Detail
canShowproperty
canShow:Boolean  [read-only]

Indicates whether it is possible to show the dialog for specified GameRequestContent.


Implementation
    public function get canShow():Boolean
Method Detail
show()method
public function show(content:Object):Boolean

Shows a game request dialog using the provided content. You must create the content using one of the GameRequestContentBuilder builder.

Parameters

content:Object — Game request content created using the builder

Returns
Booleantrue if the dialog will be displayed and false if it is not available
Event Detail
facebook_gamerequest_dialog_cancel Event
Event Object Type: com.distriqt.extension.facebook.share.events.GameRequestDialogEvent
GameRequestDialogEvent.type property = com.distriqt.extension.facebook.share.events.GameRequestDialogEvent.CANCEL

Dispatched when the user cancelled a Game Request dialog
facebook_gamerequest_dialog_complete Event  
Event Object Type: com.distriqt.extension.facebook.share.events.GameRequestDialogEvent
GameRequestDialogEvent.type property = com.distriqt.extension.facebook.share.events.GameRequestDialogEvent.COMPLETE

Dispatched when the Facebook Game Request dialog has completed successfully.

postId will contain the id of the post created.

facebook_gamerequest_dialog_error Event  
Event Object Type: com.distriqt.extension.facebook.share.events.GameRequestDialogEvent
GameRequestDialogEvent.type property = com.distriqt.extension.facebook.share.events.GameRequestDialogEvent.ERROR

Dispatched when an error occurred posting from a dialog

errorMessage will contain details on the error that occurred.