Changelog
All notable changes to this package will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
[1.3.1] - 2025-10-30
Added
- Deprecation notice in documentation
- Documentation page listing known issues with the JavaScript SDK
[1.3.0] - 2025-10-20
Added
- Community API:
FBInstant.Community.CanFollowOfficialPageAsyncFBInstant.Community.CanJoinOfficialGroupAsyncFBInstant.Community.FollowOfficialPageAsyncFBInstant.Community.JoinOfficialGroupAsync
- GamingSquads API:
AddToGamingSquadPayloadclassCreateGamingSquadPayloadclassFBInstant.SquadsGamingSquadclassGamingSquad.AddToSquadAsyncGamingSquad.GetContextIDGamingSquad.GetIDGamingSquad.GetImageGamingSquad.GetNameGamingSquad.JoinAsyncGamingSquad.LeaveAsyncGamingSquadsclassGamingSquads.CanUseSquadsAsyncGamingSquads.CreateAsyncGamingSquads.GetAsyncGamingSquads.GetPlayerSquadsAsyncJoinGamingSquadPayloadclassLeaveGamingSquadPayloadclass
- GraphApi class:
FBInstant.GraphApi.RequestAsync
- Leaderboard API:
FBInstant.GetLeaderboardAsyncLeaderboardclassLeaderboard.GetConnectedPlayerEntriesAsyncLeaderboard.GetContextIDLeaderboard.GetEntriesAsyncLeaderboard.GetEntryCountAsyncLeaderboard.GetNameLeaderboard.GetPlayerEntryAsyncLeaderboard.SetScoreAsync
LeaderboardEntryclassLeaderboardEntry.GetExtraDataLeaderboardEntry.GetFormattedScoreLeaderboardEntry.GetPlayerLeaderboardEntry.GetRankLeaderboardEntry.GetScoreLeaderboardEntry.GetTimestamp
LeaderboardPlayerclassLeaderboardPlayer.GetIDLeaderboardPlayer.GetNameLeaderboardPlayer.GetPhoto
- LiveMatch API:
LiveMatchclassLiveMatch.GetIDLiveMatch.GetContextID
- Lifecycle API:
FBInstant.GetLocaleFBInstant.GetPlatformFBInstant.GetSDKVersionFBInstant.LogEventFBInstant.SetLoadingProgressFBInstant.SwitchGameAsync
- Player API
Player.FlushDataAsync
- Social API:
FBInstant.CheckCanPlayerMatchAsyncFBInstant.MatchPlayerAsyncFBInstant.Room.GetCurrentMatchAsync
- Share API:
FBInstant.GetEntryPointAsyncFBInstant.GetEntryPointDataFBInstant.InviteAsyncFBInstant.PostSessionScoreAsyncFBInstant.ShareAsyncInviteFilterenumInvitePayloadclassInviteSectionclassInviteSectionTypeenum
- Switch API:
FBInstant.CanSwitchNativeGameAsyncFBInstant.SwitchNativeGameAsync
- Tournament API:
Tournament.GetTournamentType
Deprecated
- Documented
MediaParamsandMediaContentas deprecated.
Fixed
- Fixed a bug for endpoints that take a user callback parameter so that the callback can be invoked multiple times without throwing an error.
- Increased the timeout when initializing the Facebook Instant Games SDK to allow for more time to complete in unstable network conditions.
[1.2.0] - 2025-06-30
Added
- Player API:
SignedASIDclassPlayer.GetIDPlayer.GetASIDAsyncPlayer.GetSignedASIDAsyncSignedASID.GetASIDSignedASID.GetSignature
- Lifecycle API:
FBInstant.OnPauseScreenshotPayloadclassFBInstant.RegisterScreenshotProvider
- Remaining Context API:
FBInstant.Context.GetIDContextTypeenumFBInstant.Context.GetTypeContextSizeResponseclassFBInstant.Context.IsSizeBetweenFBInstant.SetSessionData
Changed
- Documentation for
FBInstant.Context.CreateAsyncas it only accepts a one-element array as the argument - Updated minimum Unity version in documentation to match
package.json:6000.1.0a6
[1.1.0] - 2025-04-24
Added
- Payments API:
PaymentsclassPurchaseclassPurchaseConfigclassPurchasePlatformenumFBInstant.Payments.GetPurchasesAsyncFBInstant.Payments.ConsumePurchaseAsyncFBInstant.Payments.OnReadyFBInstant.Payments.GetCatalogAsyncFBInstant.Payments.PurchaseAsync
- Class
JsResultfor retrieving the result of a JavaScript function call, propagating to C# any JavaScript exception - Documentation about error handling and upgrading.
Changed
- Implemented exception propagation from JavaScript to C# for all API endpoints
- Implemented exception propagation from JavaScript to C# for JS object member accessors
[1.0.0] - 2025-02-14
Added
- Documentation about SDK initialization and SDK testing.
- Documentation about Calling asynchronous methods and WebTask/WebTask<T>.
Resultproperty to retrieve result from WebTask<T>- Class
JsExceptionto represent JavaScript errors
Removed
- Removed top-level container class
Sdk - Removed
JsNativenamespace
Changed
- Changed namespace
RuntimetoMeta.InstantGames.Runtime - Moved entities in
JsNativenamespace toMeta.InstantGames.Runtime - Made
Meta.InstantGames.FBInstanta static class, allowing usage analogous to the JavaScript SDK, with no need to first instantiate an object. - Changed object initialization from JavaScript to use an empty object
{}instead ofObject.create(null) - Changed terms of service in
LICENSE.md - Made property
Uuidon SDK classesinternal - Renamed class
JsNativetoJsObject - Class
APIErrorderives fromJsExceptionand inherits itsMessageproperty from the base class - Moved JavaScript helper functions to new global object
JSRuntime
Fixed
- Fixed return value of
FBInstant.Tournament.GetPayloadfrom JSON serializable object to nullable string - Fixed handling of
undefinedstrings returned from JavaScript SDK endpoints
[1.0.0-pre.1] - 2025-01-06
Removed
- Moved test code to separate package
com.unity.meta-instant-games-sdk.tests.
Changed
- Made
Meta.InstantGames.APIErrorthrowable and removed propertyJsExceptionand its corresponding class
[0.0.1-exp.3] - 2024-12-17
Added
- Function
WaitForCompletionin WebTask and WebTask<T> so that they are compatible with coroutines - Build preprocessor that selectively includes auto-bootstrapping of the SDK when building for
UNITY_FACEBOOK_INSTANT_GAMES - Requirements section to document the system requirements to use this package
- Timeout of 3000ms for calls
InitializeAsyncandStartGameAsyncin auto-bootstrapping
Changed
- C# API member names (methods, properties) are PascalCase instead of CamelCase
Fixed
- Build hanging in a general Web build when package is added to a project.
[0.0.1-exp.2] - 2024-12-02
Added
- Monetization APIs:
FBInstant.getInterstitialAdAsyncFBInstant.loadBannerAdAsyncFBInstant.hideBannerAdAsyncFBInstant.getRewardedVideoAsyncFBInstant.getRewardedInterstitialAsyncAdInstanceclassAdInstance.getPlacementIDAdInstance.loadAsyncAdInstance.showAsync
init.jsprefile that will download and initialize the JavaScript SDK
Changed
- Namespace for the C# bindings has changed from
Internal.BindingstoMeta.InstantGames. - Top level class for the C# bindings has changed from
FacebookInstantGamesSDKtoSdk
[0.0.1-exp.1] - 2024-10-16
This is the first (experimental) release of Unity Package com.unity.meta-instant-games-sdk.
Added
- Added initial package contents.