1FBInstant.initializeAsync().then(function() {
2 FBInstant.startGameAsync().then(function() {
3 var playerID = FBInstant.player.getID();
4 var playerName = FBInstant.player.getName();
5 });
6});
7
1fbinstant.initialize(function(self, success)
2 fbinstant.start_game(function(self, success)
3 local player_id = fbinstant.get_player().id
4 local player_name = fbinstant.get_player().name
5 end)
6end)
7
1<script src="https://connect.facebook.net/en_US/fbinstant.6.3.js"></script>
2