我有一个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");
}
});
};
您发布的代码很讨厌。你能编辑它并格式化吗? –