我们在IE8中得到一个权限被拒绝的错误。 Facebook的图表-API [英] We are getting a permission denied error in IE8. facebook-graph-api

查看:155
本文介绍了我们在IE8中得到一个权限被拒绝的错误。 Facebook的图表-API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在获得IE8中的权限被拒绝的错误。它发生在FB.init之后。我们尝试过channelUrl修复。我们把身后的第一个标签。我们已经在脚本和channel.html中尝试了document.domain。我们已经尝试过FB.UIServer.setActiveNode解决方法。
它可以在IE9,FF,Chrome和Safari中正常工作。

 < div id =fb-root >< / DIV> 
< script src =// connect.facebook.net/en_US/all.js\"></script>
< script type =text / javascript>
var myUserId;
document.domain ='XXXX.XXXX.com';

window.fbAsyncInit = function(){
FB.init({appId:'XXXXXXXXX',
status:true,`enter code here`
cookie: true,
xfbml:true,
channelUrl:'http://XXX.XXXX.com/channel.html'
});
FB.UIServer.setActiveNode = function(a,b){FB.UIServer._active [a.id] = b; } // IE黑客纠正FB错误

我在IE8中得到一个权限被拒绝的错误 - 在facebook-fanpage上的标签应用程序。任何想法如何解决这个问题?

解决方案

这对我有用:

  FB.init({
appId:'xxxxx',
appSecret:'xxxxxxxxx',
status:true
cookie:true
});

//此代码解决问题
FB.UIServer.setLoadedNode = function(a,b){
FB.UIServer._loadedNodes [a.id] = b;
};

如下所示 http://ikorolchuk.blogspot.com/2011/09/facebook-javascript-sdk-security-error.html ?showComment = 1323866805727#c7681567069563597438


We are getting a permission denied error in IE8. It happens after the FB.init. We have tried the channelUrl fix. We have put the as the first tag after the body. We have tried the document.domain in both the script and in the channel.html. We have tried the FB.UIServer.setActiveNode workaround. It works fine in IE9, FF, Chrome and Safari.

<div id="fb-root"></div>
  <script src="//connect.facebook.net/en_US/all.js"></script>
  <script type="text/javascript">
          var myUserId;
          document.domain = 'XXXX.XXXX.com';

          window.fbAsyncInit = function() {
              FB.init({ appId: 'XXXXXXXXX',
                  status: true,`enter code here`
                  cookie: true,
                  xfbml: true,
                  channelUrl: 'http://XXX.XXXX.com/channel.html'
              });
              FB.UIServer.setActiveNode = function(a, b) { FB.UIServer._active[a.id] = b; } // IE hack to correct FB bug

I am getting an permission denied error in IE8 in a facebook-iframe for a tab app on a facebook-fanpage. Any ideas how to fix this?

解决方案

This worked for me:

FB.init({
    appId:        'xxxxx',
    appSecret:    'xxxxxxxxx',
    status:        true
    cookie:        true
});

// this code solves the issue
  FB.UIServer.setLoadedNode = function (a, b) { 
  FB.UIServer._loadedNodes[a.id] = b; 
};

As seen here http://ikorolchuk.blogspot.com/2011/09/facebook-javascript-sdk-security-error.html?showComment=1323866805727#c7681567069563597438

这篇关于我们在IE8中得到一个权限被拒绝的错误。 Facebook的图表-API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆