I need a sample tutorial to connect to Facebook instant game

I want to develop Facebook instant game.

I’m trying to develop a FB instant game with playcanvas, but I’m not sure how to get started.

See Instant Games Quick Start.(https://developers.facebook.com/docs/games/instant-games/getting-started/quickstart)

I want to start ‘{script src = ‘https://connect.facebook.net/en_US/fbinstant.6.0.js’}{/ script}’ to the beginning index.html,
I do not know how to put it in playcavas system.

Also between the loading of resources ‘FBInstant.setLoadingProgress (progress)’ I also do not know how to put this.

We would appreciate it if you could provide a simple tutorial that links play games to instant games.