Just installed facebook comments plugin and it doesnt seem to be working. Not sure whats wrong, can anyone help?
Here is our website https://www.pcbuilderbd.com/
-
This topic was modified 8 years by
zseo.
Hello,
Please check the support hours in the top right of this screen.
The only tested and recommended plugins to use with our theme are these ones:
WP Super Cache- caching plugin
Contact form 7- used to make contact forms
bbPress- forum plugin
BuddyPress- social network plugin
Font Awesome 4 Menus- icon pack, supported in the theme menus
Jetpack- plugin with lots of features *it may slow down your site
WooCommerce- eCommerce solution
WordPress (Yoast) SEO- SEO plugin
Wp User Avatar- Change users avatars
WPML – multilingual plugin
Anything beyond this list is not tested and I cannot say for sure if it will work or not.
The facebook plugin is not among te tested and recommended plugins list.
It is mentioned here that untested plugins are not covered by the theme support: https://forum.tagdiv.com/support-policy-2/
Thanks.
Hi,
Please double check if you have made the modifications according to the solution provided in this similar topic
– https://forum.tagdiv.com/topic/facebook-comments-2/
Also make sure comments are enabled in the WordPress settings and also for posts individually as mentioned there. The comments should appear if you try it like that.
Thanks
I did follow step by step exactly, even i see the code block from inspect element, i tried deactivating all the plugins but alas it doesnt work.
Can you please take a look at my single post template if i missed anything?
<?php
// Template 1 – post-final-1.psd – featured image float left
//get the global sidebar position from td_single_template_vars.php
locate_template(‘includes/wp_booster/td_single_template_vars.php’, true);
get_header();
global $loop_sidebar_position, $td_sidebar_position, $post;
$td_mod_single = new td_module_single($post);
?>
<div class=”td-main-content-wrap td-container-wrap”>
<div class=”td-container td-post-template-1 <?php echo $td_sidebar_position; ?>”>
<div class=”td-crumb-container”><?php echo td_page_generator::get_single_breadcrumbs($td_mod_single->title); ?></div>
<div class=”td-pb-row”>
<?php
//the default template
switch ($loop_sidebar_position) {
default:
?>
<div class=”td-pb-span8 td-main-content” role=”main”>
<div class=”td-ss-main-content”>
<?php
locate_template(‘loop-single-1.php’, true); ?>
<div class=”fb-comments” data-href=”<?php echo get_permalink($td_mod_single->post->ID); ?>” data-width=”100%” data-numposts=”5″></div>
</div>
</div>
<div class=”td-pb-span4 td-main-sidebar” role=”complementary”>
<div class=”td-ss-main-sidebar”>
<?php get_sidebar(); ?>
</div>
</div>
<?php
break;
case ‘sidebar_left’:
?>
<div class=”td-pb-span8 td-main-content <?php echo $td_sidebar_position; ?>-content” role=”main”>
<div class=”td-ss-main-content”>
<?php
locate_template(‘loop-single-1.php’, true); ?>
<div class=”fb-comments” data-href=”<?php echo get_permalink($td_mod_single->post->ID); ?>” data-width=”100%” data-numposts=”5″></div>
</div>
</div>
<div class=”td-pb-span4 td-main-sidebar” role=”complementary”>
<div class=”td-ss-main-sidebar”>
<?php get_sidebar(); ?>
</div>
</div>
<?php
break;
case ‘no_sidebar’:
?>
<div class=”td-pb-span12 td-main-content” role=”main”>
<div class=”td-ss-main-content”>
<?php
locate_template(‘loop-single-1.php’, true); ?>
<div class=”fb-comments” data-href=”<?php echo get_permalink($td_mod_single->post->ID); ?>” data-width=”100%” data-numposts=”5″></div>
</div>
</div>
<?php
break;
}
?>
</div> <!– /.td-pb-row –>
</div> <!– /.td-container –>
</div> <!– /.td-main-content-wrap –>
<?php
get_footer();
Hi,
That should work for posts that use post template 1. I have tried it as well. I entered the code mentioned in the header file like this
– https://www.screencast.com/t/A2t0dLAbTPO
Also I made a small modification in the code regarding the language
– https://www.screencast.com/t/RSUWLkdQA
Then modified for example post template 2 with the other code mentioned in the topic
– https://www.screencast.com/t/F9YPM8plWAsy
The result is that posts that use post template 2 display the Facebook comments
– https://www.screencast.com/t/anvgmQlO
Thanks
Ok i just rechecked and everything seems, fine. Could it be something is conflicting?
Please check these error in js console
https://imgur.com/a/brFyU
Hi,
This modification should not conflict with other elements. Enter the code I used in my test in the header file as shown, this is the code
– https://pastebin.com/m17K6hqt
– https://www.screencast.com/t/xuWb4ASn91
Then this code depending on sidebar position or replace the default code in all cases
<div class="fb-comments" data-href="<?php echo get_permalink($td_mod_single->post->ID); ?>" data-width="100%" data-numposts="5"></div>
– https://www.screencast.com/t/XMTsNNBkk
Try it on one of the post templates and it should work. Clear all caching after making the modifications.
Make sure comments are enabled everywhere as well
– https://www.screencast.com/t/vs9zJXtD1EGY
– http://www.screencast.com/t/aMyqIexr
– http://www.screencast.com/t/FLD7ry7Hi25
Thanks
Header – https://imgur.com/nhIipKi (Copied your code, then changed the app id)
Template file – https://imgur.com/Kmw57qa
Comments enabled everywhere – https://imgur.com/qs3ZFd4
https://imgur.com/hS3S9iG
https://imgur.com/B2st8M8
Caching deactivated – https://imgur.com/Tg6OCEg
But the problem persists – https://imgur.com/cLXRXhI
This is sad.
Hello,
The code is returning a 403 error. Please check https://www.lifewire.com/403-forbidden-error-explained-2617989
Thanks.
I just noticed an error comes up when i reload the page where the facebook comment is placed.
After giving it a few try i was able to capture the error. It says
“href should represent a valid url”
Here is the ss
https://imgur.com/MppvBPw
Any idea what is this error and how it can be solved? I know i have bothering you for a while but i really need this thing working.
Please contact us on our email address at contact@tagdiv.com and provide a link to your site and wp-admin (login information and admin rights) so we can login and investigate. Please also include a link to this conversation.
Thank you!
The problem solved, it was a plugin that conflicted named html compression. However the facebook sdk conflicts with the speed booster plugin. I removed the deactivate code from the plugin php. Then when i activate the speed booster the facebook comments doesnt load. Is it possible to get it working along with speed booster?
Hi,
That is why the booster plugin has that predefined check list, it may cause certain plugins or modifications to not function correctly. In this case you could leave the booster plugin deactivated, so it does not conflict with the comments.
Note that Facebook comments are not a theme default option, so problems can happen.
Thanks