title: How to get Facebook Login Button To Display "Logout"
body: <p>I apologize ahead of time if this is clearly documented somewhere on the FB developer site - but I can't find it (so please link me if appropriate).</p>
  
  <p>I've implemented the FB login button on a website using GAE + Python.  Here is the HTML:</p>
  
  <pre><code>&lt;fb:login-button&gt;&lt;/fb:login-button&gt;
  &lt;div id="fb-root"&gt;&lt;/div&gt;
  &lt;script src="http://connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt;
  &lt;script&gt;
    FB.init({appId: 'ad16a806fc10bef5d30881322e73be68', status: true, cookie: true, xfbml: true});
    FB.Event.subscribe('auth.sessionChange', function(response) {
      if (response.session) {
        // A user has logged in, and a new cookie has been saved
      } else {
        // The user has logged out, and the cookie has been cleared
      }
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>Currently the behavior is - if I click on the "login" button, I am asked to allow the application access to FB.  Which I then choose, "OK".  But then the login button is still showing "login" and not "logout".  How do I implement that?  On the server or client side?</p>