title: Facebook authentication login does not refresh page
body: <p>I am using a mix of PHP SDK 3.x.x and Javascript SDK to log into Facebook authentication. When we click the login button the windows appears and after filling the credentials and submitting it does not refresh the page. The FB.Event.subscribe('auth.login') doesn't seem to trigger. What is the problem?</p>
  
  <pre><code>window.fbAsyncInit = function() {
  FB.init({
       appId   : '&lt;?php echo $facebook-&gt;getAppId(); ?&gt;',
       oauth  : true, // check login status
       cookie  : true, // enable cookies to allow the server to access the session
       xfbml   : true // parse XFBML
   });
  
  // whenever the user logs in, we refresh the page
  FB.Event.subscribe('auth.login', function(response) {
      window.location.reload();
  });
  
  FB.Event.subscribe('auth.logout', function(response) {
      window.location.reload();
  });
  
  
  };
  
  (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);
  }());
  </code></pre>