title: Facebook | redirect error
body: <p>I have facebook connect button on a page of my site and I want user to redirect to a page after a successful login: here's the code snippet:</p>
  
  <pre><code>&lt;/script&gt;
  &lt;fb:login-button onlogin="facebook_onlogin();"&gt;
  &lt;/fb:login-button&gt; &lt;script type="text/javascript"&gt;
  FB.init("API_KEY", "http://myip/facebookapp/xd_reciver.html/"); 
  function facebook_onlogin() {
      window.location="http://myip/facebookapp/mypage/"
  } 
  &lt;/script&gt;
  </code></pre>
  
  <p>But when I logged in it redirects to the page <strong>INSIDE</strong> the pop-up, how can I redirect to the page out side of the popup.. </p>