Jump to content

[Solved] Exporting Instant Games Do Not Work


greencoder
 Share

Recommended Posts

Sorry, I have been trying to export a prototype on the instant game export and it's throwing this error, appreciate any help in the right direction 

Upload error: {"message":"An unknown error occurred","type":"OAuthException","code":1,"error_subcode":1540097,"is_transient":false,"error_user_title":"Bundle Config is Missing","error_user_msg":"You must include a bundle config in your upload. To create a bundle config, please refer to: https://developers.facebook.com/docs/games/instant-games/sdk/bundle-config."

Edited by greencoder
Link to comment
Share on other sites

  • 4 weeks later...

I downloaded a very old instant games build that Panda2 exported and it did contain fbapp-config. So I believe this file is created on export from Panda2, atleast with the current workflow. Since the export function doesn't work anymore due to the error, there is no zip created when I export to instant games. Let me try to export a zip and manually put the fbapp-config and see whether I can manually upload it to facebook.

Edited by greencoder
Link to comment
Share on other sites

So, answering your question  upload the old (working) game again and see if it succeeds or fails - it fails. I had to modify fbapp-config.json to this and the old prototype works : 

{"instant_games":
	{
		"custom_update_templates":
		{
			"play_turn":
			{
				"example":"Edgar played their move"
			}
		},
		"platform_version":"RICH_GAMEPLAY",
		"orientation": "PORTRAIT",
    	"override_web_orientation": "LANDSCAPE",
    	"navigation_menu_version": "NAV_FLOATING"
	}
}

Now the only way to create a new instant game project with Panda2 is :

  1. Create your new project in Panda2
  2. Add the instantgames plugin
  3. Add plugin to game.main .require 
  4. add the following to game.config 
        instantGames: {
            system: {
                resize: true
            }
        }
  5. Create a bundle folder with app display name (like on facebook without spaces)
    1. Add the above mentioned fbapp-config.json
    2. Copy the media folder of your project to this folder
    3. Add an index.html with
      <!DOCTYPE html>
      <html>
      <head>
          <meta charset="utf-8">
          <title>Panda Game</title>
          <script type="text/javascript" src="game.min.js"></script>
      </head>
      <body>
      </body>
      </html>
      

       

    4. Export the project as "Minify" into the bundle folder, this should export the game.min.js
    5. Zip the bundle with same name as the facebook app display name without spaces and upload it

The build should run, ideally. Gonna try out this a couple of times with different prototypes of mine now and will post back if it doesn't work. 

Edited by greencoder
Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...