开发者

FB.Connect.logoutAndRedirect is not redirecting to the specified page

开发者 https://www.devze.com 2022-12-15 05:15 出处:网络
Not sure whats wrong,below code logs me out of facebook but not redirecting to开发者_JAVA技巧 test2.php, after the popup disappears, thepage just refreshes, no redirection

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消