Facebook comment moderation implemented but not working
Asked Answered
O

0

7

I needed a comment plugin with moderation feature, As I check the docs I can do it with fb comment plugin.

I have followed the documentation and attach fb comment plugin created from one of my app. Used the below 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/en_US/sdk.js#xfbml=1&version=v2.10&appId=5XXXXXXXXXXXXX4";
      fjs.parentNode.insertBefore(js, fjs);
     }(document, 'script', 'facebook-jssdk'));
   </script>

And for the comment I have added

<div class="fb-comments" data-href="http://my.domain.com/folder/subfolder/page-1" data-width="100%" data-numposts="5"></div>

Meta tags on the page are as follows

<meta property="fb:app_id" content="5XXXXXXXXXXXXXX4" />
<meta property="og:url" content="http://my.domains.com/folder/subfolder/page-1" />
<meta property="og:title" content="Title" />
<meta property="og:description" content="Description" />
<meta property="og:image" content="http://my.domain.com/folder/abc.jpg" />

My FB App has domain set to my.domain.com and the site url of website set to http://my.domain.com

I can see the comment plugin on the page and post with fb login all fine.

But I want comment moderation in this plugin, I am checking here https://developers.facebook.com/tools/comments/5XXXXXXXXXXXXXX4/ for comments to show/moderate but no comment is shown under this app.

I have took reference from the following questions, but none can resolve my problem

Please suggest any solution

Ossian answered 9/8, 2017 at 5:45 Comment(2)
Have you checked your OG meta tags using the debug tool yet?Genera
yes i have and it all comes fine, developers.facebook.com/tools/debug/sharing/…, P.S. I have used real urls instead of given above. Also I have implemented the same yesterday, so there shouldn't be case of caching by facebook, to be sure I have scraped the url now as wellOssian

© 2022 - 2024 — McMap. All rights reserved.