fb:不安全的JavaScript尝试使用URL访问框架

时间:2013-02-01 18:25:15

标签: facebook-graph-api facebook-like

我知道为什么即使我跟踪homodigitalis.org,我仍然会在Facebook's recommendations上收到错误Unsafe JavaScript attempt to access frame with URL http://homodigitalis.org/ from frame with URL

window.fbAsyncInit = function(){

    // init the FB JS SDK
    FB.init({
        appId: '155692864582714',
        channelUrl: 'http://homodigitalis.org/channel.html',
        status: true,
        xfbml: true
    });

};

(function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol +
    '//connect.facebook.net/en_US/all.js';
    document.getElementById('fb-root').appendChild(e);
}());   

1 个答案:

答案 0 :(得分:0)

根据这个错误报告,来自FB的某人表示这是一个预期的例外:

https://developers.facebook.com/bugs/122268321247958