Skip to Content
defold-typescript libraries
defold (official)

defold/extension-fbinstant

A native extension for HTML5 builds that integrates the Facebook Instant Games API. It registers an fbinstant Lua module with functions such as fbinstant.initialize, fbinstant.start_game, fbinstant.get_player and fbinstant.show_rewarded_video.

Lua API not typed — upstream ships no .script_api, so resolve skips it.

  • GitHub: defold/extension-fbinstant — pinned to 8.0.0 (released while Defold 1.7.0 was current)
    1. Pick a release from defold/extension-fbinstant releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Configure the HTML5 section of game.project.
    3. Start from the engine HTML template and the example collections covering ads, context, leaderboards, payments and player data.