Question Mark Games Help to make game run on Facebook Instant Game Platform both Web & Messenger.
Important update:
Do not require install Facebook addon!
Do not require install Facebook addon!
Do not require install Facebook addon!
Version changes:
Ver 1.2.1
1. Add API
a. void FBInstant.payments.onReady(System.Action cb)
b. void FBInstant.payments.getCatalogAsync(System.Action<FBError, Product[]> cb)
c. void FBInstant.payments.purchaseAsync(PurchaseConfig purchaseConfig, System.Action<FBError, Purchase> cb)
d. void FBInstant.payments.getPurchasesAsync(System.Action<FBError, Purchase[]> cb)
e. void FBInstant.payments.consumePurchaseAsync(string purchaseToken, System.Action<FBError> cb)
f. bool FBInstant.payments.isSupportPayments()
2. API Demo
3. Update Document
Ver 1.1.1
1. Add API FBInstant.context.getPlayersAsync
2. Game Main Entry Script can be placed in other directory
3. Update Document
Ver 1.0.9
1. Update Document.Only Support Ver 2018 & Ver 2019. It's hard to success test on Ver 2020.
Ver 1.0.8
1. Support Unity 2019.Tested with Unity 2019.1.14f1. If you are useing older verion like 2018. You no need to upgrade to this version.
2. Unity 2019 use fb-instant SDK 6.3.
Ver 1.0.7
1. API Changed(Compatible with older version):
FBInstant.PreloadRewaredVideoAd (string adId) to
FBInstant.PreloadRewaredVideoAd (string adId, System.Action<bool> onReadCallback = null)
Ver 1.0.6
1. Add API FBInstant.player.canSubscribeBotAsync
2. Add API FBInstant.player.subscribeBotAsync
Ver 1.0.5
1. Add API HTMLCanvas.GetScreenShotBase64
=================================
1. Use Instant SDK 6.2
2. Support get player info
3. Support get set data
4. Support get set leaderboard data
5. Support play interstitial AD
6. Support play rewarded video AD
7. Support share
8. Support choose context
9. Test success on running Instant game on localhost
10.Test success on RedMi 5 Plus
11.Test success on iPhone 5
Game dev workflow as :
Prerequisite :
1. Create App on Facebook
2. Install Unity 2018.1.1
3. Install WebGL addon
Common practice :
1. Create new Unity Project
2. Switch Platform to WebGL
3. Import this asset
4. Open DemoScene and add scene to Build Settings
5. Click "Build" Button to build WebGL project, the output directory **MUST** named "web"
6. Test the game on localhost
7. Zip the "web" directory and upload the .zip to Facebook via web hosting tab
8. Test the game on mobile device both Android & iOS and web platform
Knowing Issue:
1. Require include font file to display other languages expect English
2. Build time is a little longer