11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

首页
模板
教程
此内容由第三方提供商托管,该第三方提供商在未接受Targeting Cookies的情况下不允许观看视频。如果您想观看来自这些提供商的视频,请将“Targeting Cookie”的Cookie偏好设置为“是”。
1/10
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

Facebook Instant Game Exporter

(20)
101 users have favourite this asset
(101)
$34.99
增值税将在结算时计算
许可证类型:Single Entity
一个实体
适用于个人或小型企业。
多个实体
适用于大型企业或多用户。
退款政策
该资源受Unity资源商店退款政策约束。有关详细信息,请参见《最终用户许可协议》(EULA)中的第2.9.3节。
安全结账方式:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
许可证类型
文件大小
1.1 MB
最新版本
1.2.1
最新发布日期
2020年4月14日
原始 Unity 版本
2018.1.1
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR
$34.99