Tag Archives: Recover Facebook Comments

How to Recover Facebook Comments Lost After Moving to Https/SSL?

If you had recently moved your WordPress website to Https/SSL, all your Facebook Comments would have been lost. Don’t worry, you can recover Facebook Comments by installing Fancy Facebook Comments plugin.

Note: If you are using Fancy Facebook Comments plugin to enable Facebook Comments at your website, you can add following code snippet in the functions.php file of your active WordPress theme to recover lost comments instantly:

/**
 * Load comments for the non-SSL version of SSL urls
 */
function heateor_ffc_custom_target_url( $post_url, $post ) {
    return str_replace( 'https://', 'http://', $post_url );
}
add_filter( 'heateor_ffc_facebook_comments_target_url', 'heateor_ffc_custom_target_url', 10, 2 );