Talk:Detecting Connect Status

From Facebook Developer Wiki

Jump to: navigation, search

I think you might have 2 and 3 revered here. In my tests, 3 corresponds to userNotLoggedIn, and 2 is appNotAuthorized.

That's how the article has them listed: 2 is notAuthorized, 3 is notLoggedIn. -- Pete (563683308 21:09, 22 December 2008 (PST))


Sorry, I must have made a mistake on my original post. At my test page ([1]), I get 1 when I am connected, 2 when I am logged out, and 3 when I am not authorized.

FYI, the enum values are as follows:

 FB.ConnectState.prototype = {
   connected: 1,
   userNotLoggedIn: 2,
   appNotAuthorized: 3
 }

The numbering in the article is conceptual -- it doesn't correspond to the enum values.

-- Mike (9074)

[edit] Trouble getting connection status

What am I doing wrong?

The FB.ensureInit callback fires on my web page after the call to FB.Init, but the FB.Connect.get_status callback *only* fires after the user has hit the page's fb:login-button. Which sort of defeats the purpose, since the status returned is always ConnectState.connected.

If you could post all your related code here, that will help us investigate. Thanks, Pete -- 563683308 09:33, 23 November 2009 (PST)
reference