Facebook | redirect error

Posted by MMRUser on Stack Overflow See other posts from Stack Overflow or by MMRUser
Published on 2010-04-18T08:11:16Z Indexed on 2010/04/18 8:13 UTC
Read the original article Hit count: 148

Filed under:

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:

</script>
<fb:login-button onlogin="facebook_onlogin();">
</fb:login-button> <script type="text/javascript">
FB.init("API_KEY", "http://myip/facebookapp/xd_reciver.html/"); 
function facebook_onlogin() {
    window.location="http://myip/facebookapp/mypage/"
} 
</script>

But when I logged in it redirects to the page INSIDE the pop-up, how can I redirect to the page out side of the popup..

© Stack Overflow or respective owner

Related posts about facebook-connect