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
Asked about 4 months ago
Selected Answer
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/

September 8 at 9:31 AM
Cayce
Michael

Yes uploading through the Graph API works.

September 8 at 9:49 AM
1

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

September 10 at 2:38 AM
Elena
1

We are experiencing the same issue.

September 10 at 3:43 AM
Syd
3

having the same issue

September 7 at 3:49 PM
Michael
3

I am also having same issue.

September 9 at 7:13 AM
Babar Afzaal