FB.getLoginStatus doesn't fire if the user is not logged in to Facebook

后端 未结 2 1898
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-20 12:40

I am working on a Facebook application which is integrated with Facebook and am trying to get the user\'s FB session. As far as I understand, a common usage scenario is as follo

相关标签:
2条回答
  • 2021-02-20 13:27

    The cause is a recent bug which only affects sandbox mode. I switched off sandbox mode, and it worked like a charm.

    0 讨论(0)
  • 2021-02-20 13:41

    Try forcing loading the event:

    FB.getLoginStatus(function(response) {
        alert('whoo hoo!!! getLoginStatus called the callback');
    }, true);
    

    It is stated in FB.getLoginStatus.

    The event might be not fired in some situations.

    0 讨论(0)
提交回复
热议问题