Difficulty with Facebook Comments Moderation

I am trying to implement moderation on the Facebook comment plugin that will be used on my site. I made sure that the following two tags are in the header section of the HTML:

<meta property="fb:admins" content="582222130,804179xxx"/> <meta property="fb:app_id" content="280627238712xxx"/> 

I placed the script just above the end of the body tag:

 <script type="text/javascript"> (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_GB/all.js#xfbml=1&appId=280627238712xxx"; fjs.parentNode.insertBefore(js, fjs); } (document, 'script', 'facebook-jssdk'));</script> 

I have a div tag in the right place:

 <div class="fb-comments" data-href="http://www.sss.net/xxx" data-num-posts="5" data-width="585"> 

Comments on Facebook are uploaded to the browser, everything seems to work separately from moderation, when I am on this page there are no comments at all. I made sure I added myself as an administrator, there are no spaces between the identifiers in the tags in the head tag (fb: admins).

Do I need to configure any settings when creating the Facebook application?

+4
source share
3 answers

finally fixed it !!

I forgot to put

 <div id="fb-root"></div> 

The html tag that created all these problems. Many thanks to all who have made efforts to help! Submersible stones!

+2
source

It looks like the appId that was used to get the plugin code is different from the app you added in the meta tags. In your comment moderation tool, are you looking at the right application? Perhaps check and see if the meta tag has changed the same app_id file.

+4
source

Have you tried to split the fb: admins tag? (described here: several fb: administrators in og-tags )

Second assumption: did you try to debug data-href-url using facebook debugger? https://developers.facebook.com/tools/debug all og tags are cached for 24 hours - if you debug the URL with the specified tool, then all cached data is reloaded.

+3
source

Source: https://habr.com/ru/post/1433681/


All Articles