I have an fb login button created this way
<fb:login-button perms="email" size="small" onlogin="check_login_session()">Sign Up Using Facebook</fb:login-button>
I also defined the check_login_session function, as I use it in a .click link elsewhere on the page (which really works). However, my problem is that I have already logged into FB and I press the button, the FB popup appears, then disappears and does nothing. The onlogin is not called and does not display any error.
If I had to log out, and then click the button, this will give me an invitation to log in to fb, and after filling and sending it will behave as expected. This only happens when I have already logged in, and I press the FB login button that the problem occurs. Any ideas?
Edit: I found that it triggers this if I say “put a warning” (“Test”) on onlogin, but any function that I define on the page and try to call it says that it is undefined.
source
share