# Defold on Facebook Instant Games

**URL:** <https://forum.defold.com/t/defold-on-facebook-instant-games/17506>\
**Category:** Questions\
**Created:** [March 5, 2018, 3:14pm UTC](https://forum.defold.com/t/defold-on-facebook-instant-games/17506 "2018-03-05T15:14:19Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [March 6, 2018, 8:57pm UTC](https://forum.defold.com/t/defold-on-facebook-instant-games/17506/5 "2018-03-06T20:57:34Z")

</div>

> [@rtgasi](#):
>
> You mean you can change the amount of RAM? Or something else?

You can reduce the size of the engine on disk. A gzipped slightly stripped version of the engine for HTML5 weighs in at ~800kb or something like that. You obviously need to add your assets and code to that size, but with some clever user of texture compression and perhaps also our live update feature it’s possible to keep the initial download size down.

Read more here: [Native Extensions - #133 by Mathias\_Westerdahl](https://forum.defold.com/t/native-extensions/4946/133)  
And tools to generate app manifests: [Stripping appmanifest maker](https://forum.defold.com/t/stripping-appmanifest-maker/16059)

> [@rtgasi](#):
>
> I wanted to start with Facebook Instant.

Are you part of the Facebook Instant Games beta?

> [@rtgasi](#):
>
> I was trying to find any game that was done on Defold on Instant just for a quick benchmark with other frameworks. I haven’t found any so far.

The amount of FB Instant Games is still quite low. I’m not aware of any released games but I know of one studio exploring instant games using Defold.

> [@rtgasi](#):
>
> if I just want to include a JS library I would need to port it to C++ first if I go this way, right?

No. You’d still create the “glue code” in C to set up bindings between Lua and C and then onwards to native code for the target platform, in this case Javascript. There’s HTML5 native extension examples here: [GitHub - defold/extension-html5: Example showing how to create a native extension for HTML5 · GitHub](https://github.com/defold/extension-html5)

You could use html5.run() but I think you’ll struggle a bit with the async calls of an instant games sdk.

---

_[View the full topic](https://forum.defold.com/t/defold-on-facebook-instant-games/17506)._
