jaypurcell
Forum Replies Created
-
Hi Guys,
As it currently stands, I don’t think there is a decent plugin that is supporting Facebook comments for WordPress 3.1
I’ve dug deep, tried out a lot, and a lot of them seem to be broken.If you are comfortable editing your theme files, I would suggest initially following the Facebook developer resources to add FB comments to your site manually.
Facebook just announced this week some improvements to the comment system. Try out the following links for more info on how to install it. I would load the javascript sdk in your header.php and put the fb comment markup in the single.php file, where you would like the comments to appear. Make sure you remove the php markup for the default wordpress comments though.
https://developers.facebook.com/blog/post/472
https://developers.facebook.com/docs/reference/plugins/comments/Yeah, I actually ended up running into that same problem as well.
However, fingers crossed, looks like I’ve got it working without the plugin now. After deleting the plugin from the server I added the following code to the header.php file (immediately after <body>)<div id=”fb-root”></div>
<script>
window.fbAsyncInit = function() {
FB.init({appId: ‘your app id’, status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement(‘script’); e.async = true;
e.src = document.location.protocol +
‘//connect.facebook.net/en_US/all.js’;
document.getElementById(‘fb-root’).appendChild(e);
}());
</script>Obviously, add your app id into the code above.
After that I pasted the following code into my template file where I wanted the comments to appear:
<fb:comments width=”586″></fb:comments>
As I said, this seems to be working for me now. With no plugin, just the fb code into the relevant template files.
I think there is something in the plugin that’s not playing nice with the new version of WP. We may have to wait for the plugin developer to do an update.
I found a different solution in order to use Facebook comments on posts. It’s called WP-Facebook Intergrate.
This plugin add’s the FB comments into the loop, so it would appear right after the content. It doesn’t replace the default wp comment system. My workaround for that was to deactivate the comment’s feature in the plugin settings, and instead manually add the <fb:comments></fb:comments> code into my theme file, where I would like comments to appear. It works well!