Difference between revisions of "FBInstant.setSessionData"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2018.3<br/> === Description === <br /> Sets the data associated with the individual gameplay session for the current context. This fu...")
 
Line 7: Line 7:
 
This function should be called whenever the game would like to update the current session data. This session data may be used to populate a variety of payloads, such as game play webhooks.<br />
 
This function should be called whenever the game would like to update the current session data. This session data may be used to populate a variety of payloads, such as game play webhooks.<br />
 
<source lang="lua">
 
<source lang="lua">
= FBInstant.setSessionData(sessionData,)
+
FBInstant.setSessionData(sessionData)
 
</source>
 
</source>
'''sessionData:''' (table) An arbitrary data table, which must be less than or equal to 1000 characters when stringified. ''''''<br/>
+
'''sessionData''': (table) An arbitrary data table, which must be less than or equal to 1000 characters when stringified. ''''''<br/>

Revision as of 11:20, 23 August 2018

Available since: Gideros 2018.3

Description


Sets the data associated with the individual gameplay session for the current context.

This function should be called whenever the game would like to update the current session data. This session data may be used to populate a variety of payloads, such as game play webhooks.

 FBInstant.setSessionData(sessionData)

'sessionData: (table) An arbitrary data table, which must be less than or equal to 1000 characters when stringified. '