以前使用facebook fb:login-button在所有浏览器中工作,除了ie ....本周没有更改任何代码,它意外停止在所有浏览器中工作。我重新编写代码以使用fb.login,现在它可用于ie而不是任何其他broswers(chrome或ff safari未经测试)。它弹出并且auth在ff和chrome中运行良好但是窗口挂起 https://s-static.ak.fbcdn.net/connect/xd_proxy.php?version=3#cb=f1fc2ca85ee4c5a&origin=http%3A%2F%2Fwww.textbooksrus.com%2Ffaae3192c00712&relation=opener&transport=flash&frame=f2fdac213bd74de&access_token=AAAAAGAl9kZCQBAMnOf0lu8XMOqlogMwNUgQZCWZBDEtxjOaGODoaLDV7LaQT21KYBXZCzYwquVJ83TXDPSH0VE6YLTbL5TaVRFq4NbnX2QZDZD&expires_in=5673&signed_request= ........
尝试访问www.textbooksrus.com/customer/login2.aspx
已经将脚本剥离到几乎完全是他们新的oauth 2.0的例子中。
window.fbAsyncInit = function() {
FB.init({ appId: 'my app id',
status: true,
cookie: true,
xfbml: true,
oauth: true});
function updateButton(response) {
var button = document.getElementById('fb-auth');
if (response.authResponse) {
//user is already logged in and connected
var userInfo = document.getElementById('fbMessage');
FB.api('/me', function(response) {
userInfo.innerHTML=response.name;
button.innerHTML = 'Logout';
});
button.onclick = function() {
FB.logout(function(response) {
var userInfo = document.getElementById('fbMessage');
userInfo.innerHTML='';
});
};
} else {
//user is not connected to your app or logged out
button.innerHTML = 'Login';
button.onclick = function() {
FB.login(function(response) {
if (response.authResponse) {
FB.api('/me', function(response) {
var userInfo = document.getElementById('fbMessage');
userInfo.innerHTML= response.name;
});
} else {
//user cancelled login or did not grant authorization
}
}, {scope:'email'});
}
}
}
// run once with current status and whenever the status changes
FB.getLoginStatus(updateButton);
FB.Event.subscribe('auth.statusChange', updateButton);
};
浪费了太多的时间在这...已经尝试过闪存修复....已经尝试过通道网址文件..已经尝试了几乎所有的东西......请给我一些爱情