title: Facebook redirection after login
body: <p>I googled for nearly 4 hours and am posting this.
  I am trying to implement facebook login in my website.
  The problem is login is working fine, after login it has to redirect to anther custom page,
  its not redirecting but staying in the same page. Here is my code that am using.</p>
  
  <pre><code> &lt;head&gt;
         &lt;title&gt;My Facebook Login Page&lt;/title&gt;
         &lt;script src="//connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
  
        &lt;div id="fb-root"&gt;&lt;/div&gt;
        &lt;fb:login-button perms="email"&gt;&lt;/fb:login-button&gt;
  
      &lt;script&gt;
          window.fbAsyncInit = function() {
              FB.init({
                  appId  : 'XXXXXXXXXX',
                  status : true,
                  cookie : true,
                  xfbml  : true
              });
  
              FB.Event.subscribe('auth.login', function() {
                  window.location = "about_us.html";
              });
          };
  
          (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);
          }());
      &lt;/script&gt;
  
        &lt;!-- &lt;div class="fb-login-button" &gt;Login with Facebook&lt;/div&gt; --&gt;
  </code></pre>
  
  <p>Kindly guide me where am wrong also if possible correct code
  I had taken the code from below link.
  <a href="https://stackoverflow.com/questions/5835843/redirect-after-clicking-on-the-facebook-login-button-even-if-already-logged-in">Redirect after clicking on the Facebook login button, even if already logged in Facebook</a></p>
  
  <p>Thanks in advance.</p>