0

The documentation mentions using FBInstant.player.getSignedPlayerInfoAsync() to get a signature when communicating with a custom backend.

https://developers.facebook.com/docs/games/instant-games/guides/bots-and-server-communication

Can I store the signature in a variable at the start of the app and then just use it throughout all the XMLHttpRequests for the current session?

Or do I need to call it everytime I make an XMLHttpRequest?

1
  • Once you look at what parameter that method gets passed, that question should kinda answer itself, no? Commented Jun 21, 2018 at 6:45

1 Answer 1

1

You are free to only call it once, however this will not allow you to validate the issued_at time, or to encrypt custom payloads.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.