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