我正在将 fbAsyncInit 方法用于位于粉丝页面选项卡中的 iframe 应用程序
<script>
window.fbAsyncInit = function() {
console.log('fb init');
FB.init({
appId : 12345,
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
};
(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
当我调用注册函数来检查权限时(当用户在页面加载后单击按钮时会发生这种情况)
register = function(){
console.log('starting login');
FB.login(function(response) {
if (response.session) {
console.log(response.session);
} else {
console.log('Did not authorize');
}
}, {perms:'email,publish_stream'});
};
Facebook 从以下位置加载弹出窗口:http ://static.ak.fbcdn.net/connect/xd_proxy.php?version=3#cb= {此处的会话字符串变量和其他垃圾}
仅在 IE 中产生 flash 错误:
Error #2044: Unhandled StatusEvent:. level=error, code=
我的网站没有闪存
点击继续/关闭有时可能会冻结 IE 导致我结束进程,有时弹出窗口消失