Simple Facebook Connect FB comments

Latest Reply from Fernando Garcia at 2013-01-13 06:41:15 Solution
I'm trying to integrate FB comments from Simple Facebook Connect plugin, they say I must edit comments.php and insert following code:
<div id="comment-user-details"> <?php do_action('alt_comment_login'); ?></div>
in order to display FB comments.
Unfortunately I wasn't able to do this, tried to edit comments.php in many ways, it looks like it's not the file I look for.
Can someone help me with this?
Here is the explanation:

When you click at "Get code", you will find something like:

"<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); = id;
js.src = "//";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>"

What you have to do is to copy that after the body in the file called "theloop.php", under the Editor tab.

Next, there is another code:

"<div class="fb-comments" data-href="" data-width="470" data-num-posts="2"></div>", which u have to paste after the post or page u want to be commented.

It worked for me.

Leave a reply

Add codeAdd image