FB.login产生刷新错误

| 我正在将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,导致我结束进程,而其他时候弹出窗口消失了     
已邀请:
        我们找到了Flash问题的解决方案。请更新
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
      channelURL : \'http://www.YOURDOMAIN.com/channel.html\'
    });
在您的域根文件夹中,创建“ 5”,然后仅将以下代码放入其中:
<script src=\"https://connect.facebook.net/en_US/all.js\"></script>
现在,Facebook上的Flash可以正常工作。     
        使用Flash / FaceBook API时使用Flash 10.2+,会出现以下错误。 SecurityError:错误#2000:没有活动的安全上下文。 Flash 10.3 错误#2044:未处理的StatusEvent :。级别=错误,代码= 我正在从Flash应用程序调用Facebook.login()。登录成功,但是此错误似乎破坏了该过程。此问题仅影响IE 8,没有其他浏览器。 我已经尝试过channelUrl,但是在另一个域中却无法访问Flash文件的提供位置。我正在使用Charles来映射本地。这样行吗? 除此之外,我迷路了。我不确定该错误是由我的SWF还是Facebook的代理SWF触发的。真令人沮丧这在几个月前就开始了。     
        上面提供的解决方案对我不起作用。但这确实使我在stackoverflow的另一个主题上发现了(感谢Sean Kinsey): 查看此错误报告: http://bugs.developers.facebook.net/show_bug.cgi?id=15596 IE8,使用Flash XD时getLoginStatus永远不会完成-听起来可能是您遇到的问题。 在这种情况下,请确保未将fb-root div设置为visible:hidden或display:none,因为这将导致XD Flash无法渲染 (我也确实添加了channelURL)     

要回复问题请先登录注册