Not sure whats wrong, below code logs me out of facebook but not redirecting to开发者_JAVA技巧 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?
According to the documentation,
If the user does not have a session, this function will not redirect.
Could that be the problem?
Remove ",{"reloadIfSessionStateChanged":true}" from FB.init and it will work.
精彩评论