How to insert comments into a post?

Posted in: Newspaper
Post count: 2

I want to allow user to comment into a post using thir Facebook profile.

I inserted the code below in CUSTOM CODE

<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); js.id = id;
js.src = "//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.6&appId=MYID";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

And this code in SINGLE.PHP

<?php comments_template( '', true ); ?>
<div class="fb-comments" data-href= "<?php the_permalink ();?>" data-numposts="5"></div>

Before <?php get_footer();

And it’s not working.

How to fix it?

Post count: 23312

Hello felipestoker,

There are similar topics regarding Facebook comments here on the forum, for manual implementation if you want to take a look at the following topic ->
https://forum.tagdiv.com/topic/facebook-comments-2/

Thanks for your understanding!

Post count: 2

After changing http to https. I lost all my comments. Can I have it back?

Post count: 20688

Hi,

Would be the same like in the topic below. Changing the URL would cause this to happen
https://forum.tagdiv.com/topic/lost-facebook-shares-when-moving-to-https/

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.