FBInstant.shareAsync

From GiderosMobile
Revision as of 11:04, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2018.3<br/> === Description === <br /> This invokes a dialog to let the user share specified content, either as a message in Messenger...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2018.3

Description


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 from FBInstant.getEntryPointData(). This data must be less than or equal to 1000 characters when stringified. The user may choose to cancel the share action and close the dialog, and the returned promise will resolve when the dialog is closed regardless if the user actually shared the content or not.

= FBInstant.shareAsync(payloadcallback,)

'payload: (table) Specify what to share. '
'callback: (function) A function that will be called with two arguments: True when the share is completed or nil if the operation failed, and an error code if the function failed. '