开发者

Facebook Comment (fb:comment) returning httpS content when called over http?

开发者 https://www.devze.com 2023-04-10 23:35 出处:网络
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 w开发

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 w开发者_运维技巧arnings 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%?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号