title: FB Login button not calling onlogin function
body: <p>I have my fb login button created as so</p>
  
  <pre><code>&lt;fb:login-button perms="email" size="small" onlogin="check_login_session()"&gt;Sign Up Using Facebook&lt;/fb:login-button&gt;
  </code></pre>
  
  <p>I have also defined the check_login_session function already as I'm using it on a .click link elsewhere on the page(which does work). However, my problem is when I'm already logged in to FB and I click the button, the FB popup appears, then dissapears and it does nothing. The onlogin is not called nor is any error displayed. </p>
  
  <p>If I was to logout however, and then click the button, it would give me the fb login prompt, and after filled out and submitted would behave as it is supposed to. It's only when I'm already logged in and I click the FB login button that the issue occurs. Any Ideas?</p>
  
  <p>Edit: I found that it does call it if I say put alert("Test") in the onlogin but any function I define on the page and try to call it returns saying it's not defined.</p>