title: Why doesn't my page get refreshed after login in to facebook?
body: <p>I have been trying add facebook login to my page. I have facebook login button placed on my page using following script:</p>
  
  <pre><code>    &lt;script src="http://connect.facebook.net/en_US/all.js"&gt;
      &lt;/script&gt;
      &lt;script&gt;
          FB.init({ 
              appId:'&lt;?php echo APP_ID;?&gt;', cookie:true, 
              status:true, xfbml:true 
          });
      &lt;/script&gt;
      &lt;fb:login-button perms="email,user_checkins"&gt;
          Login with Facebook
      &lt;/fb:login-button&gt;
  </code></pre>
  
  <p>It shows the login button too. while clicking it opens the login screen of facebook too.</p>
  
  <p>after making successfull login the popup box just closes without refreshing the parent page.</p>
  
  <p>what am i missing?</p>