title: Javascript Facebook Login button doesn't change to logout after login
body: <p>I'm creating a website and I'm using facebook as my authentication. I did this before and it worked back then. However it doesn't function now. I can login and logoff, the button will always stay on "login with facebook".</p>
  
  <p>I added autologoutlink="true", but it still doesn't work. Code below:</p>
  
  <pre><code>&lt;fb:login-button autologoutlink="true" perms=""&gt;Login with Facebook&lt;/fb:login-button&gt;  
  </code></pre>
  
  <p>If it helps, this is the rest of my facebook code:</p>
  
  <pre><code>&lt;script src="http://connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt;  
  &lt;script&gt;  
      FB.init({appId:'XXXXXXXXXXX', cookie:true, 
              status:true, xfbml:true
      });   
  
      // log IN event
      FB.Event.subscribe('auth.login', function(response) {  
          alert("logged in");
          insertMyInfo(response);          
      });
  
      // log OUT event
      FB.Event.subscribe('auth.logout', function(response) {
          alert("logged off");   
      });                
  &lt;/script&gt;
  </code></pre>