1

I have uploaded my .zip file of my game to Facebook Instant Games when an error pop up. It says "Game must reference to one of our supported SDKs via CDN."

I already put the script tag in head and body

    <script src="https://connect.facebook.com/en_US/fbinstant.7.0.js"></script>

and my fbapp-config.json

{ "instant_games": { "platform_version": "RICH_GAMEPLAY", "orientation": "PORTRAIT", "navigation_menu_version": "NAV_BAR" } }

I also tried the CLI method in uploading the .zip file, but also gets the same error saying I must refer to their SDK via CDN.

Can anyone please guide me.

2 Answers2

0

Can you try this script tag instead?

<script src="https://connect.facebook.net/en_US/fbinstant.latest.js"></script>

This worked for me when I just tried uploading a .zip file now.

mcs314
  • 1
  • I still got the error ; – user17219380 Oct 22 '21 at 23:03
  • Just want to confirm - did you copy/paste or manually type in the script tag I shared? There is a subtle difference between yours and mine: "facebook.com" (yours) vs. "facebook.net" (mine) that could be easy to miss without copy/pasting. If you did indeed catch that difference and still got the error when using the "facebook.net" tag, I'll keep digging around to see if I can find something else that could be causing the issue. – mcs314 Oct 23 '21 at 03:31
  • Oh thank you, but I already solved it. I appreciate your time! – user17219380 Oct 23 '21 at 04:02
  • Great! What was the issue? – mcs314 Oct 23 '21 at 04:23
0

Try to change the SDK URL to the following:

https://www.facebook.com/assets.php/en_US/fbinstant.latest.js

This works for me. I found it in a sample file, I have just downloaded from facebook.

I hope it helps!