title: Facebook fbAsyncInit firing twice
body: <p>I'm using Facebook's Javascript SDK to allow login/logout, and my problem is that when I use their window.fbAsyncInit call to initiate the FB session, it always fires twice.  I've included a simplified code sample. I'd appreciate any help!</p>
  
  <p>In the code below, the "2" alert fires a single time, and then the "1" alert fires twice.</p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;
  &lt;script type="text/javascript"&gt;
  ...some of my own functions, not related to Facebook...
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;div id="fb-root"&gt;&lt;/div&gt;
  &lt;script&gt;
  window.fbAsyncInit = function() {
      FB.init({
        appId   : '&lt;?php echo FACEBOOK_APPID; ?&gt;',
        session : &lt;?php echo json_encode($session); ?&gt;, status:false, cookie:true,  xfbml: true 
      });
  
      alert("1");
  
      FB.getLoginStatus(function(response) {
          if(response.session) { ...do stuff... } else { ...do other stuff...}
      });
  
  };
  
  alert("2");
  
  (function() {
      var e = document.createElement('script');
      e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
      e.async = true;
      document.getElementById('fb-root').appendChild(e); 
  }());
  
  &lt;/script&gt;
  ...page contents...
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>