我有一個Facebook的Javascript報告如果用戶登錄,我想存儲會話變量,以便我可以告訴我的網站,用戶登錄。在這裏它的腳本。使用javascript的經典ASP寫會話
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
var uid = response.authResponse.userID; --> want to store this in a session variable
var accessToken = response.authResponse.accessToken; --> want to store this in a session variable
} else if (response.status === 'not_authorized') {
// the user is logged in to Facebook,
// but has not authenticated your app
} else {
alert("your not connected");
}
});
};
您發佈的代碼很討厭。你能編輯它並格式化嗎? –