Difference between revisions of "FBInstant.player.getSignedPlayerInfoAsync"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2018.3<br/> === Description === <br /> Fetch the player's unique identifier along with a signature that verifies that the identifier i...") |
|||
Line 5: | Line 5: | ||
Fetch the player's unique identifier along with a signature that verifies that the identifier indeed comes from Facebook without being tampered with.<br /> | Fetch the player's unique identifier along with a signature that verifies that the identifier indeed comes from Facebook without being tampered with.<br /> | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | FBInstant.player.getSignedPlayerInfoAsync(requestPayload,callback) | |
</source> | </source> | ||
− | '''requestPayload | + | '''requestPayload''': (string) A developer-specified payload to include in the signed response. ''''''<br/> |
− | '''callback | + | '''callback''': (function) A function that will be called with two arguments: a SignedPlayerInfo object or nil is the operation failed, and an error code if the function failed. ''''''<br/> |
Revision as of 10:20, 23 August 2018
Available since: Gideros 2018.3
Description
Fetch the player's unique identifier along with a signature that verifies that the identifier indeed comes from Facebook without being tampered with.
FBInstant.player.getSignedPlayerInfoAsync(requestPayload,callback)
'requestPayload: (string) A developer-specified payload to include in the signed response. '
'callback: (function) A function that will be called with two arguments: a SignedPlayerInfo object or nil is the operation failed, and an error code if the function failed. '