CORS Error uploading Facebook Instant Game to Manage hosted assets
5

Trying to upload an instant game version to Manage hosted assets screen, getting a CORS error on the upload. Unable to test new versions on facebook. Go to Facebook Developers Apps > User Cases > Launch a game on Facebook > Web hosting > Manage hosted assets and upload a zip file and click Upload to reproduce.

Cayce
提问时间: 约 1 个月前
已选回答
1

I was able to get around this by using this command from the fb-instant npm package.

fb-instant upload {your-app-id} '{graph-token}' -f build.zip -C \"Deploy\"

You can get app-id in the url of developers dashboard, and graph-token can be generated via this curl command found here

https://developers.facebook.com/docs/facebook-login/guides/access-tokens/

9月8日 09:31
Cayce
Michael

Yes uploading through the Graph API works.

9月8日 09:49
1

The same problem. I can't upload a new version.

9月10日 02:38
Elena
1

We are experiencing the same issue.

9月10日 03:43
Syd
3

having the same issue

9月7日 15:49
Michael
3

I am also having same issue.

9月9日 07:13
Babar Afzaal