Fb.getloginstatus Always Returns Status='unknown'
If I am logged into facebook.com, I expect a call to FB.getLoginStatus will return a status='not_authorized'. Instead it returns status='unknown', even if I pass true for the 'forc
Solution 1:
Maybe you have third party cookies disabled.
Solution 2:
And to elaborate slightly on David's answer, Facebook describes this as a "by design" result when 3rd party cookies are disabled.
Unfortunately, I'm not sure of the most graceful way of handling this -- at least in my site, I need an oath token to load some data.
Solution 3:
I had similar issue, even when the 3rd party cookie is not disabled. What I did to bypass is: if I get 'unknown' response, I will call FB.login and inside that call the FB.loginStatus again. This time, FB returned correct value.
Solution 4:
Are you use http or https?
DO NOT use http be your DEV HOST!
Just use https and it works for me.
Post a Comment for "Fb.getloginstatus Always Returns Status='unknown'"