I built a demo Facebook Instant Game using unity 5.5.2 however whenever I test the game on facebook (both from android messenger and web) the loading is stuck at 0%. The scene however always loads completely behind the loading screen as shown in the image attached.
Do i need to call some function from the facebook unity plugin or am i missing something else on the facebook app settings page?? NoLoading.png
Same here! I menage to publish Facebook Web Game and on Gameroom ,but could not on Instant games.
Which in strange since both Facebook web games and Instant games are webgl builds.
I managed to solve all the issues and recently released a course on Udemy on how to port your Unity game to Facebook Instant without using external tools like Export2Canvas, and also how to interact with the Facebook instant library from a unity game.
Well, all is explain in the doc but I admit it’s not very clear if you are not familiar to HTML5. Maybe a bit late but for those who will face same issue :
Build your game for WebGl.
Edit index.html to add FBInstant support and call the inialize function as in the documentation /!\ Remplace the “WebGl.json” by your script name. This resolve the SDK error you should have seen ( don’t know how you pass it )
You need to be using the Instant Games API. For example:
FBInstant.intializeAsync().then(() => {
// load your game
return FBInstant.startGameAsync();
}).then(() => {
// your game logic
});
You can’t use this API directly from C# as it’s a JavaScript API. To use JavaScript from Unity see this tutorial
,I’ve been following along with the Defold platformer tutorial, so I thought I’d try to get it to run as a Facebook Instant Game. I added the dependancy to the GitHub master zip, configured the app on Facebook Dashboard, and copy-pasted my App ID into the facebook section of game.project. Then I bundled the project as an HTML5 game, and added the reference to the Facebook Instant Games script in the resulting index.html. However, when I upload the game to Facebook and try to run it on my phone through Facebook Messenger, the loading gets stuck around 80-90%. Has anyone else encountered this?
I followed the standard platform tutorial so I thought I’d try running it as a Facebook instant game. I added a dependency to the main GitHub zip, configured the app in the Facebook dashboard, and copied and pasted my App ID into the Facebook section of game.project. I then grouped the project as an HTML5 game and added a reference to the Facebook Instant Games script in the resulting index.html. However, when I load the game on Facebook and try to play it on my phone via Facebook Messenger, the loading stops at around 80-90%. Has anyone else found it? dgcustomerfirst
,I followed the standard platform tutorial so I thought I’d try running it as a Facebook instant game. I added a dependency to the main GitHub zip, configured the app in the Facebook dashboard, and copied and pasted my App ID into the Facebook section of the game. project. I then grouped the project as an HTML5 game and added a reference to the Facebook Instant Games script in the resulting index.html. However, when I load the game on Facebook and try to play it on my phone via Facebook Messenger, the loading stops at around 80-90%. Has anyone else found it? dgcustomerfirst