Hi, I have little query that about facebook instant games game bot. I created a bot and deployed it on glitch. But how to connect bot with game for communication. Any guide or demo will be appreciated.
i used
FBInstant.player.canSubscribeBotAsync().then(
can_subscribe => {
console.log("can subscribe "+can_subscribe)
//return can_subscribe;
FBInstant.player.subscribeBotAsync().then(function(){
// Player is subscribed to the bot
console.log("inside bot");
}).catch(function (e) {
// Handle subscription failure
console.log("inside bot failed");
});
}
);
Also where to use it. i am using it in start method