title: Facebook JS API: users_getInfo() inside ifUserConnected() deadlock
body: <p>I am trying to put Facebook connect button on the site and once connected display connected username. But for some reason following code goes into some infinite loop during first connection, and then works fine unless I delete this app from my facebook profile which causes freezing again. </p>
  
  <p>Here is a code on FB connect button click:</p>
  
  <pre><code>FB.Connect.requireSession();
  </code></pre>
  
  <p>Here is code directly on the page:</p>
  
  <pre><code>&lt;script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      FB.init("123", "/xd_receiver.htm");
      FB.ensureInit(function() {
          FB.Connect.ifUserConnected(function() {
              FB.Facebook.apiClient.users_getInfo(new Array(FB.Connect.get_loggedInUser()),new Array("name"), function(user, exec) {
              console.log("logged in:"+user[0].name);
              });
  
          }, function(){
              console.log("guest");
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>If I remove <code>FB.Facebook.apiClient.users_getInfo()</code> it works fine, but I need to get username somehow. Any tips?</p>
  
  <p>Thanks.</p>