User Manual

Facebook

Facebook is an excellent place to publish PlayCanvas games in order to reach an enormous audience. Publishing games from PlayCanvas to Facebook is straightforward.

How to publish to Facebook

1. Publish your game to PlayCanvas. (You can also publish self-hosted games to Facebook, it will be a similar process to below)

2. Visit the Facebook Developer Portal and create a new Facebook App for your game.

3. When requested choose Facebook Canvas as the type of application

Facebook Canvas

4. For the Secure Canvas URL enter the playcanv.as URL for your game

Secure Canvas

5. In the Application Settings section add the Website URL so that it looks like this: https://s3-eu-west-1.amazonaws.com/apps.playcanvas.com/[BUILD_HASH]/index.html. To find this URL take your playcanv.as game link e.g. https://playcanv.as/p/JtL2iqIH/ and add an e/ before the p/ e.g. https://playcanv.as/e/p/JtL2iqIH/. This will redirect in your browser, use this URL for the Website URL

Website URL

Adding this URL as your website URL is required because of the way PlayCanvas hosts games and the security requirements that Facebook implements to allow access to its API. We're working on a fix for this in PlayCanvas so that you only need to set the Secure Canvas URL.

6. Finally, set up all the images and icons that are required for your game

Images

7. You can test your game by visiting the App URL listed in the Settings page

App URL