• Resolved lordanti

    (@lordanti)


    After migrating the website to a new server and implementing SSL on the new server, I have lost all the Facebook likes and comments. What could be the cause? Is there a way to restore them?

    • This topic was modified 2 years, 10 months ago by lordanti.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Heateor Support

    (@heateor)

    As Facebook likes and Comments are rendered on url basis, changing the url (in your case, to SSL) would start these from 0.
    To recover the likes, you would like to read what Facebook suggests, here https://developers.facebook.com/docs/plugins/faqs Read the section How do I move a page to a different URL?
    Recovering Facebook Comments would require more work. If you give us some time, we can come up with a add-on or something, that you can install at your website to recover comments.

    Thanks for your quick response.
    I tried the solution suggested by Facebook (changing the og:url tag); unfortunately, it didn’t work for me. I’m using the Yoast SEO plugin for generation of the og tags, so I implemented the code snippet provided by them (https://kb.yoast.com/kb/change-og-url/ ); it succesfully changed the og:url tags, but the likes and comments are still missing.
    As Google and the Chrome browser keep pushing everybody into HTTPS and penalizing non-SSL websites, more and more people are going to face this problem. It would be useful if you, or someone else, could develop a solution.
    Thanks again.

    Plugin Contributor Heateor Support

    (@heateor)

    it succesfully changed the og:url tags, but the likes and comments are still missing.

    Sorry, this is something that Facebook controls. Nothing we can do about this.

    It would be useful if you, or someone else, could develop a solution.
    Thanks again.

    We are working on it. Will include this in one of our add-ons within next 24 hours.

    Is there a way to recover Google+ comments?

    Plugin Contributor Heateor Support

    (@heateor)

    @lordanti,
    Sorry for being late. Here is how you can Recover Facebook Comments lost after moving to SSL/Https http://support.heateor.com/recover-facebook-comments-wordpress-moving-to-https-ssl/
    @opajdara,
    Sorry, for now nothing we can do about it.

    Here’s the permanent fix

    Install and activate Really Simple SSL plugin

    Add the following code to your theme function.php file

    function rsssl_exclude_http_url($html) {
    //replace the https url back to http
    $html = str_replace(‘data-href=”https://www.example.com’, ‘data-href=”http://www.example.com’, $html); return $html;
    }
    add_filter(“rsssl_fixer_output”,”rsssl_exclude_http_url”);

    Change example.com to your actual domain

    I hope this didn’t come too late @lordanti

    Cheers!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Facebook comments and likes disappeared’ is closed to new replies.