Questions tagged [facebook-instant-games]

Use this tag for support with developing for Facebook Instant Games.

120 questions
1
vote
2 answers

How to resolve Facebook Instant Games uploading.zip file error

I have uploaded my .zip file of my game to Facebook Instant Games when an error pop up. It says "Game must reference to one of our supported SDKs via CDN." I already put the script tag in head and body
1
vote
0 answers

Facebook instant game stuck at 100%

So I created a simple game form HTML just for fun and I want to upload it to instant game facebook. I watch youtube but it was no use. I copied code from here and I don't know what to do now. I read some documentation and did what it told like…
1
vote
0 answers

Facebook Instant Games Not Giving Player Photo

I am using this code for getting player photo but response always standard photo url like this:…
1
vote
0 answers

Facebook Instant Games: some accounts return error:CLIENT_UNSUPPORTED_OPERATION when called purchaseAsync()

In the Facebook web version, some accounts will return an error when calling purchaseAsync (): CLIENT_UNSUPPORTED_OPERATION, but some accounts can be successfully called without returning an error. What is the reason and how to solve it, thank you…
Xun Lin
  • 11
  • 1
1
vote
1 answer

Facebook Instant Game fails to load scripts from cloudflare.com due to Content Security Policy

In my Facebook Instant Game I try to statically load scripts from cloudflare.com such as:
Slaus
  • 2,086
  • 4
  • 26
  • 41
1
vote
2 answers

Facebook Instant Game IAP on Android device

We are trying to integrate facebook instant game IAP in our game,but it only works on Browser. There is a dialog presented on browser. payment dialog on browser But on Android device, the callback passed to FBInstant.payments.onReady is never…
lee
  • 61
  • 5
1
vote
1 answer

Facebook - How to remove loading screen from Instant Games

I am currently running into some trouble of trying to remove the loading screen from Facebook Instant Games. I have tried following this Quick Start tutorial. Unfortunately, the loading screen still appears. Screenshot of the problem I am using the…
1
vote
0 answers

How to fix ‘Share option’ error in FB Instant Game

This sharing code isn't working for desktop share but working fine in mobile share. In desktop i'm getting error. function getBase64Image(img) { var canvas = document.createElement("canvas"); canvas.width = 614; canvas.height = 1079; …
1
vote
0 answers

Microsoft Edge not accepting anonymous cross origin?

On the Facebook Instant Games platform, you can load a user's photo by using the following code: var playerImage = new Image(); playerImage.crossOrigin = 'anonymous'; playerImage.src = FBInstant.player.getPhoto(); Setting the crossOrigin…
Wayne Whitty
  • 19,513
  • 7
  • 44
  • 66
1
vote
0 answers

Facebook instant game specific URL sharing problem

I created specific url's for Instant game by getting parameters, for example: fb.gg/play/Myappid/5 So 5 is parameter is this case, when 5 is called, I showing some specific content to the user in Instant Game, but my problem is that I want to post…
1
vote
1 answer

Saving and loading facebook instant game multiplayer data of the game

1) Is setting up webhook necessary to save json data of a context shared between players of context? 2) How to validate callback url for webhook on facebook developer console? My game is already live on facebook for single player. (No local…
Keeves Dev
  • 46
  • 5
1
vote
1 answer

Facebook Instant Games API method canSubscribeBotAsync() always returns false while testing

I am testing an instant games app and I ultimately want my bot to collect messaging_game_plays events to log user data at the end of a play session. To allow messaging_game_plays to be sent, I've been directed by this answer to…
1
vote
1 answer

Can Google Analytics be used in Instant Games?

I know that Facebook Analytics exists, but that doesn't seem to offer info on real-time traffic. Can Google Analytics be added or is it against the policy of Instant Games?
Wayne Whitty
  • 19,513
  • 7
  • 44
  • 66
1
vote
1 answer

GWT compiler isn't allowing 'default' as a javascript object property in my JSNI block

I'm porting my Java LIBGDX game to Javascript. There's some JSNI code that looks something like this: private native void hello() /*-{ var object1 = {default: 'foo', b: 42}; console.log(object1.default); }-*/; GWT refuses to compile this,…
Daje
  • 33
  • 5
1
vote
2 answers

Messenger InstantGames - web request works fine on Messenger webpage, but fails when played through Messenger mobile app

I have a game written in TypeScript uploaded into Facebook Instant Games. I have a super simple call to obtain real timestamp from my own server. I managed to get it working after uploading a build into InstantGames and after facing issues with…
kreys
  • 987
  • 4
  • 21