facebook game files example 1

facebook game files example

FBInstant.initializeAsync().then(function() {
    FBInstant.startGameAsync().then(function() {
      var playerID = FBInstant.player.getID();
      var playerName = FBInstant.player.getName();
    });
});

Here is what the above code is Doing:
1. Initialize the SDK
2. Start the game
3. Get the player’s ID and name

Similar Posts