This invokes a dialog to let the user share specified content, either as a message in Messenger or as a post on the user's timeline.
A blob of data can be attached to the share which every game session launched from the share will be able to access via the
This data must be less than or equal to 1000 characters when stringified.
When this method is called you should consider your game paused. Listen out for the
resume event from this plugin to know when the dialog has been closed.
The user may choose to cancel the share action and close the dialog. The resulting
resume event will be dispatched regardless if the user actually shared the content or not.
A text message to be shared.
The key of the texture to use as the share image.
The frame of the texture to use as the share image. Set to
A blob of data to attach to the share.
This Facebook Instant Games Plugin instance.