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

后端 未结 2 1897
佛祖请我去吃肉
佛祖请我去吃肉 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: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.

提交回复
热议问题