Tuesday, January 21, 2020

Create FB Instant Game

1. index.html <html> <body> <script src="https://connect.facebook.net/en_US/fbinstant.6.2.js"></script> whatever... </body> </html> 2. main.js FBInstant.initializeAsync()     .then(function() {         var progress = 0;         var interval = setInterval(function() {             progress += 100;             FBInstant.setLoadingProgress(progress);             if (progress >= 95) {                 clearInterval(interval);                 FBInstant.startGameAsync()                     .then(                         function() {                             // Retrieving context and player information can only be done                             // once startGameAsync() resolves                             var contextId = FBInstant.context.getID();                             var contextType = FBInstant.context.getType();                             var playerName = FBInstant.player.getName();                             var playerPic = FBInstant.player.getPhoto();                             var playerId = FBInstant.player.getID();                             //start Game                             startYourGame();                         }                     )             }         }, 100);     }); Error: Sorry...

Activate Iphone

1. Switch to Safe mode 2. Connect to Itune - Update - Activ...