views:

663

answers:

2

Not sure whats wrong, below code logs me out of facebook but not redirecting to test2.php, after the popup disappears, the page just refreshes, no redirection

//test1.php

FB.init("xxxxxxxxxxxx", "xd_receiver.htm",{"reloadIfSessionStateChanged":true});

FB.Connect.logoutAndRedirect('test2.php');

can any one help?

A: 

According to the documentation,

If the user does not have a session, this function will not redirect.

Could that be the problem?

bzlm
A: 

Remove ",{"reloadIfSessionStateChanged":true}" from FB.init and it will work.

Ernest

related questions