| Package | com.distriqt.extension.facebookapi.appinvites |
| Interface | public interface AppInvite extends flash.events.IEventDispatcher |
App Invites are a content-rich, personal way for people to invite their Facebook friends to a mobile app.
App Invites does not require Facebook Login.
| Method | Defined By | ||
|---|---|---|---|
canShow():Boolean Deprecated: Deprecated
Indicates whether it is possible to show the App Invite dialog. | AppInvite | ||
show(content:Object):Boolean Deprecated: Deprecated
Shows the App Invite dialog using the provided content. | AppInvite | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when the user cancelled an App Invite dialog | AppInvite | |||
| Dispatched when the Facebook App Invite dialog has completed successfully. | AppInvite | |||
| Dispatched when an error occurred from an App Invite dialog errorMessage will contain details on the error that occurred. | AppInvite | |||
| canShow | () | method |
public function canShow():BooleanIndicates whether it is possible to show the App Invite dialog.
ReturnsBoolean — true if the dialog can be shown and false otherwise
|
| show | () | method |
public function show(content:Object):Boolean
Shows the App Invite dialog using the provided content.
You must create the content using one of the builders:
AppInviteContentBuilderParameters
content:Object — App Invite content created using one the builder
|
Boolean — true if the dialog will be displayed and false if it is not available
|
var builder:AppInviteContentBuilder = new AppInviteContentBuilder()
.setAppLinkUrl("https://www.mydomain.com/myapplink")
.setPreviewImageUrl("https://www.mydomain.com/my_invite_image.jpg");
var success:Boolean = FacebookAPI.service.appInvite.show( builder.build() );
| facebookapi:appinvite:dialog:cancelled | Event |
com.distriqt.extension.facebookapi.events.AppInviteEventcom.distriqt.extension.facebookapi.events.AppInviteEvent.DIALOG_CANCELLEDDispatched when the user cancelled an App Invite dialog
| facebookapi:appinvite:dialog:completed | Event |
com.distriqt.extension.facebookapi.events.AppInviteEventcom.distriqt.extension.facebookapi.events.AppInviteEvent.DIALOG_COMPLETED
Dispatched when the Facebook App Invite dialog has completed successfully.
| facebookapi:appinvite:dialog:error | Event |
com.distriqt.extension.facebookapi.events.AppInviteEventcom.distriqt.extension.facebookapi.events.AppInviteEvent.DIALOG_ERROR
Dispatched when an error occurred from an App Invite dialog
errorMessage will contain details on the error that occurred.