Instant Games

Bundle Configuration

Updated: Oct 12, 2026
Copy for LLM
Every Instant Game bundle (ZIP file) must include a configuration file called fbapp-config.json at the root of the bundle. This file tells the Instant Games platform how to configure certain behaviors for your game, such as the navigation menu and screen orientation.
The fbapp-config.json file is required. If your bundle does not include it, the upload fails with a missing bundle configuration error.

File location

The fbapp-config.json file must be placed at the root level of your bundle ZIP file, alongside your index.html. It should not be inside a subdirectory.
my-game.zip
  index.html
  fbapp-config.json
  game.js
  styles.css
  assets/
    sprite.png
    sound.mp3

File format

The file must contain valid JSON. The top-level structure uses a key called instant_games to namespace all Instant Games-related configuration. Other top-level keys may exist for other Facebook platform features, but this guide covers only the Instant Games configuration.
All values are case-sensitive and must be written in capital letters, exactly as shown in this guide.

Minimal configuration

This is the smallest valid configuration file. Copy it into your project to get started:
{
  "instant_games": {
    "navigation_menu_version": "NAV_BAR"
  }
}

Complete example

Here is a configuration file that uses all of the fields described in this guide:
{
  "instant_games": {
    "platform_version": "RICH_GAMEPLAY",
    "navigation_menu_version": "NAV_BAR",
    "orientation": "PORTRAIT",
    "override_web_orientation": "LANDSCAPE"
  }
}

Supported fields

FieldRequiredValues
navigation_menu_version
Yes
"NAV_BAR", "NAV_FLOATING"
orientation
No
"PORTRAIT", "LANDSCAPE"
override_web_orientation
No
"PORTRAIT", "LANDSCAPE"
platform_version
No
"RICH_GAMEPLAY"
Some features, such as custom update templates, add their own fields to this file. See each feature’s guide for details.

instant_games.navigation_menu_version

Type: String
Required: Yes
Description: Controls the style of the navigation menu that appears within the Instant Games runtime. The navigation menu provides system-level controls such as a back button, mute toggle, and other platform features.
Supported values:
ValueDescription
"NAV_BAR"
A fixed navigation bar.
"NAV_FLOATING"
A floating navigation menu that sits on top of your game.
Example:
{
  "instant_games": {
    "navigation_menu_version": "NAV_BAR"
  }
}
Recommendation: Use "NAV_BAR" unless your game needs the full screen. If you choose "NAV_FLOATING", keep important buttons away from the area the floating menu covers.

instant_games.orientation

Type: String
Required: No
Description: Controls the screen orientation of your game. This setting affects how the platform presents your game on mobile devices.
Supported values:
ValueDescription
"PORTRAIT"
The game is designed for portrait (vertical) orientation. On mobile devices, the game is locked to portrait mode.
"LANDSCAPE"
The game is designed for landscape (horizontal) orientation. On mobile devices, the game is locked to landscape mode.
Default: If you do not set this field, the platform uses the orientation configured for your game in the App Dashboard. If none is configured, the game runs in portrait.
Example:
{
  "instant_games": {
    "navigation_menu_version": "NAV_BAR",
    "orientation": "PORTRAIT"
  }
}
Recommendations:
  • Choose portrait if your game is designed for single-hand mobile play. Most casual games (match-3, endless runners, card games) work best in portrait.
  • Choose landscape if your game requires a wide viewport. Games with side-scrolling gameplay, multiplayer split-screen, or desktop-style interfaces often work better in landscape.
  • Test your chosen orientation on real devices. Verify that the lock works correctly and that your game’s layout fills the screen appropriately in the specified orientation.

instant_games.override_web_orientation

Type: String
Required: No
Description: Sets a different orientation for players on desktop web. When this field is set, desktop players get this orientation, and mobile players get the value of orientation.
Supported values:"PORTRAIT", "LANDSCAPE"
Example: A portrait mobile game that uses a wider layout on desktop:
{
  "instant_games": {
    "navigation_menu_version": "NAV_BAR",
    "orientation": "PORTRAIT",
    "override_web_orientation": "LANDSCAPE"
  }
}

instant_games.platform_version

Type: String
Required: No
Description: Identifies the Instant Games platform experience your game uses. The only supported value is "RICH_GAMEPLAY", which is also the default, so you can leave this field out.
Note: This field does not select an SDK version. You choose the SDK version with the script tag in your index.html (for example, https://connect.facebook.net/en_US/fbinstant.8.0.js). The legacy "CLASSIC" value is no longer supported, and bundles that use it are rejected.

Landscape game example

For a landscape-oriented game with a floating navigation menu:
{
  "instant_games": {
    "navigation_menu_version": "NAV_FLOATING",
    "orientation": "LANDSCAPE"
  }
}

Validation

The platform validates fbapp-config.json when you upload your bundle. If the file is missing, contains invalid JSON, or contains unsupported values, the upload fails and you receive an error message in the App Dashboard.
Common validation issues include:
  • Missing file. The bundle does not contain fbapp-config.json at its root. Add the file next to index.html.
  • Missing navigation menu setting.navigation_menu_version is required. Add it with a value of "NAV_BAR" or "NAV_FLOATING".
  • Invalid JSON syntax. Trailing commas, missing quotes, or other JSON formatting errors. Use a JSON validator or linter to check your file before uploading.
  • Unsupported orientation value. Only "PORTRAIT" and "LANDSCAPE" are accepted. Lowercase values such as "portrait", and other values such as "both" or "auto", are not valid.
  • Missing instant_games section. All fields must be inside the instant_games object.

Tips

  • Version control your configuration. Include fbapp-config.json in your source control alongside the rest of your game code. Changes to this file affect how your game behaves on the platform, and you should track those changes.
  • Test after changing configuration. Any change to fbapp-config.json should be followed by a test on the platform to verify that the new settings work as expected. Upload a new build with the updated configuration and test in a development environment.
  • Keep it simple. Only include the required field and the fields that you need to override. The default values are sensible for most games, and adding unnecessary configuration increases the surface area for errors.

Next steps

  • Game Testing — Learn how to test your game on the platform after configuring your bundle.
  • Game Performance — Optimize your game’s loading time and runtime performance.
  • Quick Start — If you have not built your first Instant Game yet, start here.
  • SDK Reference — Full API documentation for the Instant Games SDK.