fb instant game demo download code example
Example 1: facebook game files example
FBInstant.initializeAsync().then(function() {
FBInstant.startGameAsync().then(function() {
var playerID = FBInstant.player.getID();
var playerName = FBInstant.player.getName();
});
});
Example 2: facebook game files example
fbinstant.initialize(function(self, success)
fbinstant.start_game(function(self, success)
local player_id = fbinstant.get_player().id
local player_name = fbinstant.get_player().name
end)
end)