title: facebook login status in sdk javascript
body: <p>I have a problem to get the login status of the logged in user. 
  The getLoginStatus Function will be not called.
  I want to get the access token to get the user data. 
  I tried with my own APP-ID and with a game APP-ID (298553513572593).
  Above you can see my code:</p>
  
  <pre><code>&lt;body&gt;
      &lt;div id="fb-root"&gt;&lt;/div&gt;
      &lt;script type="text/javascript"&gt;
          // Load the SDK asynchronously
          (
          function(d, s, id) {
              var js, fjs = d.getElementsByTagName(s)[0];
              if (d.getElementById(id)) return;
              js = d.createElement(s); js.id = id;
              //js.src = "http://connect.facebook.net/de_DE/all.js";
              js.src = "http://connect.facebook.net/de_DE/all.js#xfbml=1&amp;appId=APP_ID";
              fjs.parentNode.insertBefore(js, fjs);
          }
          (document, 'script', 'facebook-jssdk')
      );
  
          function login() {
              FB.login(function(response) {
                  if (response.authResponse) {
                      // connected
                  } else {
                      // cancelled
                  }
              });
          }
  
          window.fbAsyncInit = function() {
              // init the FB JS SDK
              FB.init({
                  appId      : 'APP_ID',                          
                  status     : true,                                      
                  cookie     : true,
                  xfbml      : true 
              });
  
              // Additional initialization code such as adding Event Listeners goes here                      
              FB.getLoginStatus(function(response) {
                  alert(response);
                  if (response.status === 'connected') {
                      // connected
                      var uid = response.authResponse.userID;
                      var accessToken = response.authResponse.accessToken;
                  } else if (response.status === 'not_authorized') {
                      // not_authorized
                      login();
                  } else {
                      // not_logged_in
                      login();
                  }
              });
          };
      &lt;/script&gt;
      &lt;div&gt;
          &lt;fb:login-button show-faces="true" width="200" max-rows="1"&gt;&lt;/fb:login-button&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>The Html-Tag has the attribute <code>xmlns:fb="http://ogp.me/ns/fb#"</code></p>