Version: Unity 6.1 (6000.1)
Language : English
Facebook Instant Games configurations
Upload to Facebook Instant Games

Facebook Instant Games templates

Load required settings for Facebook Instant Games and customize the appearance of the HTML page that hosts your Web player.

The default templates for Facebook Instant Games have the same structure and functionality as the Web templates but are tailored for the Facebook Instant Games environment. There are separate templates for portrait and landscape orientations. They also include the required fbapp-config.json file necessary for uploading to Facebook Instant Games.

Note: The HTML templates include a Facebook SDK script tag comment. If you edit the templates, leave in the comment. While the Facebook Instant Games SDK for Unity package automatically downloads and initializes the Facebook Instant Games SDK, the comment is still required for a successful upload.

Facebook Instant Games configuration file

The fbapp-config.json file stores Facebook Instant Games configuration values including orientation, play configuration, and custom template variables.

When you make custom templates, you can modify settings in the configuration file to customize your game. For example, you can configure the template to send out custom updates.

Refer to Facebook’s Bundle Configuration Reference documentation for examples of customizations and more information about the configuration file.

Additional resources

Facebook Instant Games configurations
Upload to Facebook Instant Games
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961