Class SignedPlayerInfo
Represents information about the player along with a signature to verify that it indeed comes from Facebook.
Inherited Members
Namespace: Meta.InstantGames.v8
Assembly: Unity.Meta.InstantGames.Sdk.v8.dll
Syntax
public class SignedPlayerInfo : JsObject
Constructors
SignedPlayerInfo()
Construct an instance of SignedPlayerInfo
Declaration
public SignedPlayerInfo()
Methods
GetPlayerID()
Get the id of the player.
Declaration
public string GetPlayerID()
Returns
Type | Description |
---|---|
string | The ID of the player. |
GetSignature()
A signature to verify this object indeed comes from Facebook. The string is Base64URL-encoded and signed with an HMAC version of your App Secret, based on the OAuth 2.0 spec.
Declaration
public string GetSignature()
Returns
Type | Description |
---|---|
string | The signature string. |