hello,
I have issue when using shareAsync from FBInstant, in this case, how we can detect if user success share, or they just close the share Dialog. with below code, it always "share complete", even user just click close dialog. on facebook instant game document, they mention about return Promise object, but with no example.
FBInstant.shareAsync({
intent: 'SHARE',
image: imgBase64,
text: 'X is asking for your help!',
data: { myReplayData: "..." },
}).then(function() {
// continue with the game.
console.log("share complete");
/*runtime.callFunction("shareResult");*/
}).catch(function (e) {
// Handle subscription failure
console.log(e);
console.log("share failed");
});