Barabus Posted August 29, 2018 Share Posted August 29, 2018 FBInstant.initializeAsync().then(function() { FBInstant.startGameAsync().then(function() { FBInstant.player.canSubscribeBotAsync().then(function(can_subscribe) { if (can_subscribe) { console.log("We can subscribe for bot."); FBInstant.player.subscribeBotAsync().then(function() { console.log("We are successfully subscribed for bot."); }).catch(function (e) { console.log("Subscribtion for bot has been failed, error: " + e.message) }); } else { console.log("We can not subscribe for bot, and have no error.") } }).catch(function (e) { console.log("We can not subscribe for bot: " + e.message) }); }); }); The app always returns "We can not subscribe for bot, and have no error." What is wrong in this code? Quote Link to comment Share on other sites More sharing options...
Noel Posted August 30, 2018 Share Posted August 30, 2018 @Barabus Well, you are calling canSubscribeBotAsync to check if that user can subscribe to the bot. It looks like this player cannot, that is it. We do not list all the cases this might happen, as it is subject to change, but you can assume that it returns the correct value. Quote Link to comment Share on other sites More sharing options...
Barabus Posted August 30, 2018 Author Share Posted August 30, 2018 @Noel Thanks. I got it. The bad thing is that I can not test this behavior. Quote Link to comment Share on other sites More sharing options...
Bodman Posted August 31, 2018 Share Posted August 31, 2018 On 8/30/2018 at 5:16 AM, Barabus said: @Noel Thanks. I got it. The bad thing is that I can not test this behavior. I have never got it to return true. Even with updated google pixel on latest android version. Quote Link to comment Share on other sites More sharing options...
hammad zahid Posted December 6, 2018 Share Posted December 6, 2018 @Bodman and @Barabus do you find any solution to that? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.