I am trying to send game play request to my Facebook friend using FBinstant.chooseAsync
method. But no request is sending to my friend and I am not getting any data at callback after calling this method.
Here is my game code:
FBInstant.initializeAsync() .then(function() {
console.log("FBInstant.initializeAsync complete");
console.log("FBInstant.startGameAsync complete");
FBInstant.startGameAsync().then(function() {
console.log("FBInstant.startGameAsync complete");
console.log("FBInstant.startGameAsync context : " + FBInstant.context.getID());
FBInstant.context.chooseAsync() .then(function (e) {
console.log("FBInstant.context.chooseAsync complete");
console.log(e);
});
});
});
it seems that you have to call updateAsync in the resolve function of chooseAsync, you may try something like flowing: