question

Salvador avatar image
Salvador asked

Error LoginWithFacebookInstantGamesId

Hi, I'm trying to try this playfab function but it gives me the error of "InvalidFacebookInstantGamesSignature (1396). This error is given to me in postman.

I also included an ajax call in my project but it also gives me an error.

Access to XMLHttpRequest at 'https://XXXX.playfabapi.com/Client/LoginWithFacebookInstantGamesId' from origin 'https://apps-334052124010569.apps.fbsbx.com' has been blocked by CORS policy: Request header field cache-control is not allowed by Access-Control-Allow-Headers in preflight response.

This is the code I use to get the Facebook Instant Games Signature

captura.jpg (17.2 KiB)
captura1.jpg (55.1 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Andy avatar image
Andy answered

Can you ensure you've provided us with the correct Facebook Instant Games App Secret on the add-on configuration page? We use that as part of the signature validation process. If it were left blank or misconfigured, we wouldn't be able to properly validate signatures for your title.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Salvador avatar image Salvador commented ·

Yes, when using the addons of instant games I use the ID of my project and the secret key that are in basic configurationEn

0 Likes 0 ·
Salvador avatar image Salvador commented ·

It works for me, thanks!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.