title: facebook session check on login
body: <p>I have put the following code in my head to check the session:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
              FB.getLoginStatus(function(response) {
                if (response.session) {
                  alert('I am logged in');
                } else {
                  alert('I am logged out');
                }
              });
      &lt;/script&gt;
  </code></pre>
  
  <p>however, it does not get executed on page load, why is this?</p>