Support » Plugin: Facebook Comments » Recover facebook comments lost after moving to SSL

  • Hi,

    I an using your wonderful plugin. Just moved my website to SSL. All the Facebook comments are lost. Is there any way to recover those?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter haiticu




    Don’t waste your money on the heateor paid add-on recommended above as it does not recover pre ssl facebook comments.



    BTW – if you use the Really Simple SSL plugin, you can recover your pre-ssl facebook comments by adding this function to your theme/child theme functions.php

    function rsssl_exclude_http_url($html) {
    //replace the https url back to http
    $html = str_replace('data-href="', 'data-href="', $html); return $html;


    You’re a life saver @brightestspark


    @brightestspark – Thank you so much for this! This is amazing – I was so stoked about having SSL but losing my comments was devastating.

    There’s one last issue and I’ll post it here in case anyone has any ideas.

    Comment counts are screwed up now on my site – everything is reading as Zero comments.

    I use this line of code in home.php, index.php, single.php and category.php to display the comments count:

    <fb:comments-count href="<?php echo get_permalink($post->ID); ?>"></fb:comments-count>

    Can anyone see any reason why this wouldn’t work anymore?

    Think this should work on the post it self :

    <fb:comments-count href="<?php echo get_permalink(); ?>"></fb:comments-count>

    • This reply was modified 3 years, 7 months ago by mscgl.

    That didn’t seem to work. To be clear – it shows a comment count, but it only counts the comments that were made *after* SSL was applied to the site. The ‘recovered comments’ (made pre-SSL) are not included in the count.

    One of the affected pages is here.
    Honestly I’m happy to have SSL and my old comments, this is kind of a minor glitch if anything but if there’s a solution to it that would be great too …

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Recover facebook comments lost after moving to SSL’ is closed to new replies.