Facebook Comment (fb:comment) 通过 http 调用时返回 httpS 内容?
这大约 10 天前才出现:
我有一个 100% http 的页面。但是,facebook javascript(我通过 http 调用)正在通过 HTTPS 返回资产(.js、图像),这会为 IE(9) 用户生成安全警告。
我发现这是 Facebook 的评论小部件(
以下是 100% http: 上的实时页面示例,其中包含错误: http://app.gophoto.com/p?id=10173&rkey=CD01891B287792415384&s=1&a=6940
这是 Facebook 通过 HTTPS 返回的资产之一 https://s-static.ak.facebook .com/rsrc.php/v1/y8/r/7Htnnss1mJY.js
如何让 facebook 评论以 http 形式返回页面? 或者,实际上,所有使用 fb:comments 的第三方网站都需要 100% 通过 https 显示吗?
This just came up ~10 days ago:
I have a page that's 100% http. But, the facebook javascript (which I call over http), is returning assets (.js, images) over HTTPS, which is generating security warnings for IE(9) users.
I have figured out it's the comment widget from Facebook (
Here's an example of a live page on 100% http: with the error:
http://app.gophoto.com/p?id=10173&rkey=CD01891B287792415384&s=1&a=6940
Here's one of the assets that Facebook returns over HTTPS
https://s-static.ak.facebook.com/rsrc.php/v1/y8/r/7Htnnss1mJY.js
How can I get facebook comments to come back to the page as http?
Or, truly, are all 3rd party websites that use fb:comments going to need to be displayed over https 100%?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了解决方案。在 FB.init 函数的正上方,只需输入 FB._https = true;
这对我来说是成功的,IE9 的安全警告消失了。
I found the solution. Right above your FB.init function, just put FB._https = true;
That did it for me and the security wanrings is gone for IE9.