How to use Facebook Instant Games extension?

Hello.

I managed to learn the basics of Defold. I like it a lot :slight_smile: !
I made myself a simple game.
However, I have a problem with the extension under Facebook.
I don’t understand this description Facebook Instant Games extension

  1. I created myself a new app (game) on https://developers.facebook.com/
  2. I added APP ID to game.project
  3. I added l fbinstant folder to my project

I don’t know how to implement FB API and run my game.
Can I test such game in IDE or I have to upload game to Facebook ?

Can someone send me a simple example e.g. with a button for facebook ?
The tictactoe example is too difficult for me. I will be grateful

1 Like

Which part of the instructions are you struggling with?

I’ve updated the documentation a bit to mark some of the steps under Installation as optional.

I’ve also created a super bare bones example “game” with just the init code for Facebook Instant Games and nothing more:

You can test the game from a local server without upload to Facebook. This is described in the official documentation:

1 Like

I’ve updated the Tic Tac Toe example game and moved it to a separate repository. The new version does not use any backend service for game state and is instead passing game state in the entry point data of each game update. New version:

6 Likes