Facebook Instant Games Support - HTML5

Is there a way to export Unity WebGL for use via Facebook Messenger Instant Games?

Sadly this is not supported at the moment from our end.

1 Like

That is quite sad indeed - missed platform potential

Is this anywhere in the roadmap

Any updates on this? The instant games now have millions of players.

I’d like to use unity for this but I have to use Cocos Creator since the output actually works on mobile.

They could remove the mobile block, it works on my mobile tests. Performance doesnt compare with a pure-JS engine, but it works. I think as it’s stated elsewhere, the real culprit is loading them atm. It would be cool if they gave users a direction.

Personally unity should have done what YYG did, and like IL2CPP, created a translator that would output into a real JS engine, that they would build internally. GameMaker outputs to JS like any reasonable html5 solution should.
Even if this meant having less features or whatnot, performance gains would be worth it for these scenarios.

What do you do to make it work? It feels like it’s a bit hit and miss whether a build will work or not. Often the game will start but the webview will crash and reload after some time. I try to keep memory usage below 150 mb but there must be something else I have to watch out for.

That I recall, last time i tried, I think it required 256mb to get it right. Not sure if i did get at least one of the demos to run on 128mb. I usually keep them on 2^x(128,256,512, etc).

In my tests, and this was on a more modern tablet and a samsung galaxy s3 mini(old), the asm.js build was at times more performant, but it seems the wasm build was more stable. I really don’t like having to remove the mobile warning, that warning really should exist.
This guy goes into detail on creating your own template:
https://www.youtube.com/watch?v=2h2NDUQnGuo

It took quite a while to load either way, certainly loading is the biggest issue. All of this was a few months back, so not sure how things are right now. Oh, i also turn off exceptions.

Not sure what else i can say, good luck!

Thanks for the input though I think things are just too uncertain right now. Until Unity officially supports mobile browsers I’ll use something else.

1 Like

Anyone play the soccer game Golden Boot? It’s definitely a 3D game and loads super fast. Is it made with Unity?

1 Like

yes, It’s on Unity3d, trying: https://apps.facebook.com/goldenbootgame
and it loads so so

i don’t think itis the same the same game. also the play button doesn’t work and is greyed out.

This may be inappropriate, but I’d like to bump this thread since it’s been a while - is there any news on Unity supporting Facebook Instant Games? Or would it be possible to jury-rig a facebook instant games app when exporting to html5?

There is nothing you can currently use and if you are starting a project don’t bet all of it on some “future” that might never come.

But we know that this is something a lot of you want and we’re working on it right now. See

There will be more info later this year as we make progress and have more to share.

2 Likes

any particular timepoint in highlight here

also will this be unity 2D only or fully unity 3D support in fb instant games

1 Like

FB instant games are totally based on system webview, if Unity wants to use micro runtime to adapt to IG, I think it should be a runtime is embedded in messenger, I am curious how Apple think about it, whether it will violate Apple’s policy?

I am really looking forward to this, I just made a super simple Flappybird and ported to WebGL web assembly and it’s just to bloated and slow.
Hope to get my hands on a beta of the “fast and small” Unity pipeline as soon as possible, love your work Guys and girls keep it up.

Yeah, this would help a lot if implemented somehow. Other engines already have it and it is supposedly quite easy to use (Cocos2D). So any info about FB instant games and Unity would be awesome :slight_smile:

To be fair, to write a simple FB instant game ( just a regular HTML5 game that uses the FB API) is not to hard, it’s the tooling one want from Unity to be productive.

at what time in the video is webGl/Fb instant games are mentioned please ?

thanks

the link above is set to where that part starts (01:30h)

1 Like