简体   繁体   English

如何解决 Facebook Instant Games uploading.zip 文件错误

[英]How to resolve Facebook Instant Games uploading.zip file error

I have uploaded my .zip file of my game to Facebook Instant Games when an error pop up.当错误弹出时,我已将我的游戏的 .zip 文件上传到 Facebook Instant Games。 It says "Game must reference to one of our supported SDKs via CDN."它说“游戏必须通过 CDN 引用我们支持的 SDK 之一。”

I already put the script tag in head and body我已经把脚本标签放在了 head 和 body

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

and my fbapp-config.json和我的 fbapp-config.json

{ "instant_games": { "platform_version": "RICH_GAMEPLAY", "orientation": "PORTRAIT", "navigation_menu_version": "NAV_BAR" } } { "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.我还在上传 .zip 文件时尝试了 CLI 方法,但也遇到了同样的错误,说我必须通过 CDN 引用他们的 SDK。

Can anyone please guide me.任何人都可以请指导我。

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.当我现在尝试上传 .zip 文件时,这对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM