Displays the user invitation dialog. Allows specifying a default invitation text and application custom arguments.
Unlike showNotification method it does not allow sending invitations to users who have been using this app.
|text||Yes||Text that will be sent in the invitation|
|params||No||Custom data transmitted to the application when a user accepts the invitation. The data will be transmitted in the custom_args parameter. For more information, see application parameters.|
Max length: 120 characters.
|selected_uids||No||The list of friend IDs that will already be selected when the invitation window opens.|
20 IDs per request max.
Users must be in the friend list. Friends selected are only those who have been playing games recently.
Example using selected_uids parameter
Following values can be passed as API_callback function arguments:
Callback if user declined to send an invite
Callback if user sent an invite to a single friend
Callback if user sent an invite to multiple friends at once
Callback if no available friends to invite were found (mobile only)
A dialog where user can select friends to invite will be displayed as a result: