title: Reloading page after successful Facebook Login
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3715047/how-to-reload-a-page-using-javascript">How to reload a page using Javascript?</a>  </p>
  </blockquote>
  
  
  
  <p>I have the Facebook login working correctly except for the redirect after the user logs in.</p>
  
  <p>Calling it here:</p>
  
  <pre><code>else {
  echo '&lt;h3&gt;Please login with your Facebook account&lt;/h3&gt;';
  echo '&lt;p&gt;';
  $f1-&gt;displayLoginButton();
  echo '&lt;/p&gt;';
  }
  </code></pre>
  
  <p>$f1->displayLoginButton() defined here:</p>
  
  <pre><code>    function displayLoginButton() {
      echo '&lt;fb:login-button show-faces="false" width="600" max-rows="1" scope="publish_stream, manage_pages, email"&gt;&lt;/fb:login-button&gt;';
  }
  </code></pre>
  
  <p>I'm pretty sure I just need to reload the page using something like:</p>
  
  <pre><code>window.location.reload()
  </code></pre>
  
  <p>But I'm not too familiar with JS. Can someone point me in the right direction?</p>