This is my code.
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({appId: '<?= FACEBOOK_APP_ID ?>', status: true, cookie: true, xfbml: true});
FB.Event.subscribe('auth.login', function(response) {
window.location.reload();
window.location.href='http://www.site.com/out.php';
});
</script>
Why wont it redirect? I use the same code when i log in, (only different url) and it redirect...