我使用fbAsyncInit方法,生活在粉丝页面标签的iframe应用的FB.login生产闪存错误
<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产生闪光错误:
Error #2044: Unhandled StatusEvent:. level=error, code=
我的网站中有
无频闪打继续/解雇有时会冻结IE导致我结束进程,其他时间弹出消失
您是否添加了上述答案中指定的频道网址? – chrisan 2011-06-21 09:57:11
今天早上我测试了,我可以确认....这个修补程序。只要确保你的channelUrl位于相同的域.....问题...如果我们需要区域化all.js怎么办?包含在页面上的那个是否超过了这个? – leedium 2011-06-21 13:32:56