现在我们已经转到https,我们可以获取为http站点制作的fb注释吗? [英] Can we get the fb comments made for the http site now that we've moved to https?

查看:137
本文介绍了现在我们已经转到https,我们可以获取为http站点制作的fb注释吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们刚刚获得SSL证书,并将我们的网页移至https。一切顺利,除了所有的Facebook评论都已经消失。我们用来显示它们的代码是

We've just got an SSL cert and moved our pages to https. Everything was smooth except all the facebook comments have gone. The code we use to display them is

<?php <div class='fb-comments' data-href='http://website.com";
echo $_SERVER['REQUEST_URI'];
echo "' data-numposts='5'></div> ?>

我尝试将http更改为https(在阅读此问题/答案后href =https://stackoverflow.com/questions/30056273/how-to-best-move-fb-comments-from-http-to-https>如何最好地将fb-comments从http转移到https )。这没有什么区别。

I've tried changing the http to https in the above (after reading this question/answer How to best move fb-comments from http to https). It doesn't make a difference.

我们有一个从http路径到https的301重定向。

We have a 301 redirect from the http paths to the https.

看起来好像是在变化显示的时候发表的评论,但是有什么办法可以还原旧的吗?

It seems like comments made since the change are showing but is there any way to get the old ones back also?

推荐答案

http(s)似乎工作。代码是:

Removing the http(s) seemed to work. Code is:

<div class='fb-comments' data-href='website.com";
echo $_SERVER['REQUEST_URI'];
echo "' data-numposts='5'></div>

这篇关于现在我们已经转到https,我们可以获取为http站点制作的fb注释吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆