Search code examples
facebooksslfacebook-comments

Can we get the fb comments made for the http site now that we've moved to https?


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> ?>

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.

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?


Solution

  • 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>