FBInstant.shareAsync(), FBInstant.updateAsync(), and FBInstant.inviteAsync() now accept an optional aiDisclosure field. Use it to declare whether the image, GIF, or video your game attaches was generated or edited with AI:FBInstant.shareAsync({ intent: 'SHARE', image: base64Picture, text: 'Can you beat my score?', aiDisclosure: 'AI_GENERATED', // or 'NOT_AI_GENERATED' });
'AI_GENERATED' or 'NOT_AI_GENERATED' rejects the call with INVALID_PARAM.en_US default. Players whose preferred language is not English receive the en_US content.en_US content. Translations are not added to them automatically later.FBInstant.tournament.createPrivateAsync() and handle each error.fbapp-config.json and bundle limits incorrectly, and they are now corrected. If you built a bundle from the earlier examples and your upload was rejected, update your configuration file:fbapp-config.json is required at the root of every bundle. Uploads without it are rejected.navigation_menu_version is required and accepts "NAV_BAR" or "NAV_FLOATING". The values "NAV_1" and "NAV_2" are not valid.orientation accepts "PORTRAIT" or "LANDSCAPE", in capital letters. Lowercase values and "both" are not valid.platform_version does not select an SDK version. Its only supported value is "RICH_GAMEPLAY", which is the default, so you can omit it. Choose your SDK version with the script tag in index.html.{ "instant_games": { "navigation_menu_version": "NAV_BAR" } }
FBInstant.getDisplayMode() and FBInstant.onDisplayModeChange(callback) in Instant Games SDK 8.0 and restricted.latest. Games can observe the standard desktop web player’s presentation and keep their UI synchronized with Facebook’s player controls:NORMAL: the default player presentation.EXPANDED: the player is expanded within the page, with its sidebar collapsed.FULLSCREEN: the game player is in browser fullscreen. This takes precedence over EXPANDED.FBInstant.initializeAsync() resolves, check FBInstant.getSupportedAPIs() for onDisplayModeChange before registering a callback. Callback support is available on eligible hosts even if the player has not observed its first mode yet. getDisplayMode appears in the supported API list once a mode is known.getDisplayMode is already supported when initialization resolves, read it for the initial state.getDisplayMode() returns null before initialization, before the first mode is known, or on unsupported hosts. Mobile players, Cloud games, Canvas apps and embedded players are not supported. The APIs apply to both portrait and landscape desktop games; Facebook’s existing fullscreen button remains landscape-only.message can now include a top-level button_title. The notification is sent as a single-card Messenger bot message built from the message’s title, body, and media_url, with your text on the play button. Previously, a top-level button_title required notification_content_id.notification_contents parameter no longer has to reference stored notification content. In place of notification_content_id, a card can now carry an inline message object with its own title, body, and optional media_url. If you omit media_url, the card falls back to your game’s banner image.notification_content_id or message. You can mix stored-content cards and inline cards freely in the same carousel, and a carousel made up entirely of inline cards is allowed. The card-level payload remains required on every card, and button_title and game_metadata behave the same way on both card types.title and body are checked against the Notification Guidelines. If any inline card fails this check, the entire request is rejected.FBInstant.player.createNEZPNotificationContentAsync() to create stored notification content for each card, then send 2 to 5 cards with the A2U API’s notification_contents parameter.notification_content_id and required payload, and can optionally include a custom button_title and card-level game_metadata for context or player routing. Single-card sends that use notification_content_id can also include a top-level button_title. A carousel request counts as one A2U notification for quota purposes, not one notification per card.FBInstant.tournament.createPrivateAsync() is a new method that creates a tournament scoped to the Messenger group chat the player is currently in: only members of that chat can see it or take part, it never appears on Facebook, and a leaderboard message is posted into the conversation when the tournament is created, each time a score is posted, and when it ends. Other players join by tapping that message, exactly as they do today.await FBInstant.context.chooseAsync({minSize: 3}); const tournament = await FBInstant.tournament.createPrivateAsync({ initialScore: 1200, data: {gameMode: 'blitz'}, }); tournament.getTournamentType(); // 'PRIVATE'
createPrivateAsync() takes an initial score and an optional data blob, and nothing else. A private tournament uses the tournament settings configured for your game on the developer site, so every private tournament your game creates behaves the same way -- there is no per-tournament title, duration, sort order or score format. initialScore goes through the same score validation as a score posted later, so a game using forceScoreValidation has to confirm it.shareAsync(), inviteAsync(), and postSessionScoreAsync() change inside a private tournament.Tournament.getTournamentType(), which returns DEFAULT, PRIVATE, DAILY, or PAGE_HOSTED. Check it before showing tournament UI: not every tournament can be shared or joined.GROUP context type as a Messenger group conversation. Messenger group chats report a context type of THREAD; GROUP means a Facebook Group. The guide now shows how to tell a group chat apart from a one-on-one conversation.developerPayload is deprecated and stops being populated after October 30, 2026developerPayload field across the Instant Games payments APIs. It may return null even when your game sets it, and it will stop being populated entirely after October 30, 2026.developerPayload is null everywhere it is returned today:Purchase object returned by purchaseAsync() and getPurchasesAsync()developer_payload field in the decoded signedRequest payloaddeveloper_payload field in IAP Payment WebhooksdeveloperPayload to identify a purchase or to decide whether to deliver content. Use purchaseToken instead — it uniquely identifies a purchase, is included in the signed receipt, and works as an idempotency key on your server.purchaseAsync() succeeds and returns the purchase.signedRequest on your server.consumePurchaseAsync() with the purchaseToken.PURCHASE_SUCCESS notification lets your server consume the purchase and grant the content. Dedupe on purchase_token so content is not granted twice.FBInstant.player.getName() and FBInstant.player.getPhoto(). Under Zero Permissions, your game code cannot read player names or photos.{{FBInstant.player.name}} template expression in the text field. Meta resolves template expressions at render time, in default and in localizations.imageOverlayPath, pathToCSS, and initialData properties. These are documented in the update payload table alongside the existing fields.{{FBInstant.players[PLAYER_ID].name}}. In v8.0, the player objects returned by FBInstant.context.getPlayersAsync() expose only getID(), so pass IDs into your overlay through initialData.destroyAsync() on the OverlayView object in the FBInstant.overlayViews reference. Unlike dismissAsync(), which only hides an overlay view so it can be shown again later, destroyAsync() permanently destroys the overlay view, removes its iframe element from the DOM, and releases its resources. Use it to free up memory for overlay views you no longer need.FBInstant.openExternalLinkAsync(url) is now available in Instant Games SDK v8.0 for approved external URLs after platform confirmation.FBInstant.getSupportedAPIs() to confirm that openExternalLinkAsync is available on the current client.PURCHASE_SUCCESS for completed purchases and REFUND_SUCCESS for processed refunds.NO_FILL since that date. This removal is part of our effort to improve the overall quality of the ad experience by reducing game interruptions for players.Task-based async patternsgraph-video.facebook.com/{APP_ID}/assets) is deprecated and will be removed on May 26, 2026. Migrate to the new Bundle Upload Service, which uses a two-step upload flow:graph.facebook.com/v24.0/{APP_ID}/uploads)| Date | Change |
|---|---|
August 1, 2025 | All newly created Instant Games must use Zero Permissions as the connection experience. Standard (blocking permissions) connection is no longer available for new apps. |
September 30, 2026 | Sunset of Web Games on Facebook. Web Games will no longer be available unless migrated to Instant Games with Zero Permissions. Existing Instant Games (created on or before July 31, 2025) can continue using the standard connection experience until this date. |