如何使用Facebook的api註銷登出我的應用程序(網站),但讓我登錄到facebook.com?Facebook API註銷我的應用程序,但不是Facebook
這將記錄我好嗎:
window.fbAsyncInit = function()
{
FB.init({
appId : '<?= APP_ID ?>',
status : true,
cookie : true,
xfbml : true,
oauth : true,
});
FB.Event.subscribe('auth.login', function(response)
{alert(response);
window.location = 'http://reviewsie.com/accounts/facebook';
});
};
(function(d)
{
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));
但後來我點擊我的網站,我我殺會話我的應用程序註銷。然後,當你再次點擊fb:login-button時,它會打開並關閉,因爲我仍然連接到Facebook,所以不會執行任何操作。我希望它重定向。
但是,如果當我註銷時我也使用Facebook :: logoutUrl它會將我從我的應用程序和Facebook中註銷,這不是我想要的。
請粘貼你的代碼。你試過了什麼? – 2012-02-08 07:43:53
張貼我的代碼,而且我被困在這個 – cdub 2012-02-08 07:48:51
unset($ _ SESSION ['fb_APPID_user_id']); – 2013-11-25 10:22:38