FB.Mobile.AppInvite
Presents a App Invite dialog allowing the user to send a personalized invitation to their Facebook friends to install your app.
When called in the Unity Editor, a stub function is called instead.
You need to be using FB.ActivateApp correctly during app launch and resume for accurate installation tracking. Learn more here
Parameters
public static void AppInvite (
Uri appLinkUrl,
Uri previewImageUrl = null,
FacebookDelegate<IAppInviteResult> callback = null
)
| Name | Type | Description | Default |
|---|---|---|---|
|
| The AppLink URL to identify your app and also used for deep-linking | Required |
|
| A preview image URL for this invite. The suggested image size is 1,200 x 628 pixels with an image ratio of 1.9:1. |
|
|
| A delegate which will receive the result of the App Invite dialog |
|
Examples
FB.Mobile.AppInvite(
new Uri("https://fb.me/810530068992919"),
new Uri("http://i.imgur.com/zkYlB.jpg"),
AppInviteCallback
);
Best Practices
Refer to these best practices when using App Invites.