So my game wants the players to have the ability to subscribe to a game bot and I'm using FBInstant.player.canSubscribeBotAsync() method. But everytime, it will return an error that state
Uncaught TypeError: FBInstant.player.canSubscribeBotAsync is not a function here is my code
FBInstant.player.canSubscribeBotAsync().then(function(yes){
if(yes){
FBInstant.player.subscribeBotAsync().then(function(){
console.log('sub');
}).catch(function(e)){}
}
});
I tried using this code from FB developer doc
FBInstant.player.canSubscribeBotAsync().then(
can_subscribe => console.log(can_subscribe)
);
but the result still the same.