开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜