Use this tag for support with developing for Facebook Instant Games.
Questions tagged [facebook-instant-games]
120 questions
1
vote
1 answer
Detect come from background for Facebook Instant Games
I'm building an idle game and wondering if there's anyway to know when a player returns to the game from background (without relaunching the game)? After browsing through APIs, I only found the onPause event but not resuming.
Thank you!
Mars

Mars Zhu
- 296
- 2
- 13
1
vote
1 answer
Testing disputes on facebook instant games purchases
Does anybody of you test Disputes for Instant Games in-app-purchases?
I'm currently working on some Facebook Messenger Instant Game. We provided simple purchases, but i have no idea how to test disputes on it.
On Facebook Canvas its really easy…

Reggis
- 49
- 4
1
vote
1 answer
Does Facebook Instant Game only support getSignedPlayerInfoAsync for communication with game backend?
I need to show ads in the Facebook instant game, the company I belong to hope get adID through communication with game server to meet the audition. From Facebook link…

Siguang Zhang
- 29
- 3
1
vote
1 answer
How to send invites to friends using Facebook instant game SDK with Phaser framework
Iam currently working on a Facebook instant game project. I need to implement friend invites for my instant game project which uses Phaser framework. I searched but I couldnt find any working or tutorials, the docs is not making sense to me.Could…

The Keeper
- 429
- 7
- 16
1
vote
1 answer
Adding a parameter to a Facebook Instant Games URL, to access it later in the game
We would like to add a parameter to our InstantGame link http://m.me/PageTitle?game=GameTitle&PARAMETER=VALUE, which we want to read out again later e.g. for campaign tracking.
We found something here, but it doesn't seem to work on instant…

Oli
- 1,407
- 3
- 30
- 47
1
vote
3 answers
Why FBInstant.chooseAsync method not sending game play request to friend?
I am trying to send game play request to my facebook firend using FBinstant.chooseAsync method. But no request is sending to my friend and I am not getting any data at callback after calling this method.
Here is my game code -
…

Saiful Islam Sajib
- 2,243
- 1
- 12
- 17
1
vote
0 answers
How to test payments in Facebook Instant Game?
I cannot seem to make a test dialog appear. When I call payments.purchaseAync, I am always presented with a real Checkout dialog as opposed to a test dialog.
I've already added the test user to the Testers. Am I missing anything? Or is this feature…

threedollarbill
- 165
- 2
- 11
1
vote
4 answers
How to get rid of the loading progress in Facebook Instant Games with Phaser
I am developping a game for Facebook instant games with Phaser 2 CE, and i don't like the loading progress shown at the starting point, how can i get rid of it ?
I am using the default example given in the Quick Start page
…

albator2018
- 91
- 10
1
vote
1 answer
What is the right size of the area in Facebook instant games to use it with Phaser
I am coding a game in Phaser 2 CE so the actual code is bellow according to https://stackoverflow.com/a/50300726/2107253 but when i open the game in my mobile device or on the desktop the image is not displayed in center and it is hidden
var game =…

albator2018
- 91
- 10
1
vote
1 answer
How to create a Phaser button in Facebook instant games for a mobile device
I am trying to create a button with Phaser 2 CE on a mobile device but it doesn't fires, even if it works fine on desktop, the entiere code will be on my github repository but for the moment i can just display an image like in the code bellow
var…

albator2018
- 91
- 10
1
vote
0 answers
How to show ads in facebook Instant Game?
This is my code:
FBInstant.getInterstitialAdAsync('111_222')
.then(function (interstitial){
if(typeof interstitial !== 'undefined'){
if (typeof interstitial.getPlacementID() === 'undefined'){
…

葛小云
- 11
- 4
1
vote
1 answer
Facebook Instant game bot message often results in "Cannot send Instant Game message to user at this time"
I'm making a Facebook instant game, and am sending myself test messages via the associated bot.
It works. But not always, why?
Very often I get this:
{
"error": {
"message": "(#100) Cannot send Instant Game message to user at this…

Bemmu
- 17,849
- 16
- 76
- 93
1
vote
1 answer
Facebook Messenger Instant Games cannot fetch from or post to leaderboards
I am trying to port my first game to messenger instant, but I am totaly unable to post or fetch any scores. I have created both global and context related leaderboards, but no luck with either of them. I stil get ' no leaderboard found error'. Am I…
1
vote
1 answer
failed to submit Leaderboard score in facebook instant games
I am not able to submit score on leaderboard. Also, i am very new to javascript, so i dont know exactly how to catch error thrown by setScoreAsync
FBInstant.getLeaderboardAsync('global')
.then(function(leaderboard) {
…

wardaddy
- 43
- 5
1
vote
1 answer
Facebook Instant "PLAY" button not present
My Facebook Instant app does not have a play button, so it's not possible to launch the app via sharing.
Could someone outline what I need to do to get this button to appear please?
I've set up everything (including an app page) in the dashboard.…

Steven Haggerty
- 308
- 3
- 15