在一个电子商务网站,我维护,我加入了Facebook的“喜欢”按钮,按照说明操作:Facebook的“喜欢”按钮中断HTTPS/SSL
http://developers.facebook.com/docs/reference/plugins/like
我使用iframe的方法:
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fexample.com%2Fpage%2Fto%2Flike&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80"
scrolling="no" frameborder="0" style="border:none; overflow:hidden;
width:450px; height:80px;" allowTransparency="true">
</iframe>
它的工作原理,但如果客户碰巧登录到她的帐户,她得到了臭名昭著的“mixed content warning”
是否有方式使用相同的Facebook'Like'按钮代码,但在SSL模式下不会插入非https内容的方式?
我不知道这个伎俩。它是否适用于所有的交响乐?谢谢你介绍给我。 – 2011-04-15 20:54:48
这不适用于脸书。现在的问题是,实际的图像只在他们的http网站上。 – Noah 2011-06-27 18:38:56
@诺阿,它为我工作? @ android-eve当用户代理将其保留为空时,它将继承协议...这个诀窍从早期的浏览器日子开始...... – todd 2011-07-08 19:01:42