| Package | com.distriqt.extension.facebookapi.games | 
| Interface | public interface GameRequest extends flash.events.IEventDispatcher | 
| Method | Defined By | ||
|---|---|---|---|
| canShow():Boolean 
		 Indicates whether it is possible to show the Game Request dialog. | GameRequest | ||
| show(content:Object):Boolean 
		 
		 Shows the Game Request dialog using the provided content. | GameRequest | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when the user cancelled a Game Request dialog | GameRequest | |||
| Dispatched when the Facebook App Invite dialog has completed successfully. | GameRequest | |||
| Dispatched when an error occurred from a Game Request dialog errorMessage will contain details on the error that occurred. | GameRequest | |||
| canShow | () | method | 
 public function canShow():BooleanIndicates whether it is possible to show the Game Request dialog.
Returns| Boolean—trueif the dialog can be shown andfalseotherwise | 
| show | () | method | 
 public function show(content:Object):Boolean
Shows the Game Request dialog using the provided content.
		 You must create the content using the builder:
		 
GameRequestContentBuilderParameters
| content:Object— Game Request content created using the builder | 
| Boolean—trueif the dialog will be displayed andfalseif it is not available | 
         var builder:GameRequestContentBuilder = new GameRequestContentBuilder()
             .setTitle( "Facebook API ANE Game Request" )
             .setMessage( "Come play this game with me" );
         
             var success:Boolean = FacebookAPI.service.gameRequest.show( builder.build() );
         | facebookapi:gamerequest:dialog:cancelled | Event | 
com.distriqt.extension.facebookapi.events.GameRequestEventcom.distriqt.extension.facebookapi.events.GameRequestEvent.DIALOG_CANCELLEDDispatched when the user cancelled a Game Request dialog
| facebookapi:gamerequest:dialog:completed | Event | 
com.distriqt.extension.facebookapi.events.GameRequestEventcom.distriqt.extension.facebookapi.events.GameRequestEvent.DIALOG_COMPLETED
Dispatched when the Facebook App Invite dialog has completed successfully.
| facebookapi:gamerequest:dialog:error | Event | 
com.distriqt.extension.facebookapi.events.GameRequestEventcom.distriqt.extension.facebookapi.events.GameRequestEvent.DIALOG_ERROR
Dispatched when an error occurred from a Game Request dialog
		 errorMessage will contain details on the error that occurred.