Tag Archives: Recent 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.

After installing the Fancy Facebook Comments plugin, 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 );

If you are using Fancy Facebook Comments Pro plugin, add following code snippet in the “functions.php” file of your active WordPress theme to recover lost comments:

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