我试图通过调用来设置应用程序的高度:
FB.init({ appId: fbAppId,
status: true,
cookie: true,
xfbml: true,
oauth: true,
channelURL: webUrl + '/channel.html'
});
FB.Canvas.setAutoResize();
而如果它是在HTTP但它只是对HTTPS这是行不通的。
样品网址: http://www.facebook.com/ListerineAU/app_300955373319633 -不工作https://www.facebook.com/ListerineAU/app_300955373319633 -工程
错误信息:
Unsafe JavaScript attempt to access frame with URL http://www.facebook.com/ListerineAU/app_300955373319633 from frame with URL https://s-static.ak.facebook.com/connect/xd_arbiter.php?version=5#channel=f35120b198&origin=http%3A%2F%2Fjwteeth.aptira.com&channel_path=%2F%3Ffb_xd_fragment%23xd_sig%3Df2eb2cde4%26&transport=postmessage. Domains, protocols and ports must match.
这似乎是对FB端的错误,有其他人遇到此?