comments plugin moderation tool not working

31,919

Solution 1

I figured out what was going on. I was debugging on my local machine, and it seems that the facebook admin integration wouldn't work there. Once I moved it to a production/visible server the debugger worked: https://developers.facebook.com/tools/debug

I was then able to troubleshoot the main problems and get the comments integrated. It's odd because the commenting itself will work locally. Live and learn I guess.

Solution 2

I had the same problem and solved it with this:

For moderation tool to work, beside app

<meta property="fb:app_id" content="xxxxx" />

and admin tags

<meta property="fb:admins" content="xxx" />

you MUST add the tags:

<meta property="og:url" content="URL" />
<meta property="og:title" content="TITLE" />
<meta property="og:description" content="DESC" />
<meta property="og:image" content="IMG" />

after that everything worked fine.

Solution 3

I tried these solutions but they didn't work for me. After several hours I found the solution. This is the process I followed:

  1. I went to https://developers.facebook.com/tools/debug, put the URL of my app where I had the facebook comments box

  2. The most important information is the final url because this is the page where facebook will look for your meta tags "Final URL is in bold (this is the URL we tried to extract metadata from)".

  3. I noticed that my final url was my sign in page, but I didn't have my meta tags in my sign in page! I had just added the meta tags in the layout I used for facebook comments.

  4. I just added the fb:app_id meta tag with my facebook app id in my sign in page, and I finally have my Comment Moderation Tool working.

Solution 4

I am using this meta tags.

    <meta property="og:title" content="TİTLE" />
    <meta property="og:description" content="CONTENT" />
    <meta property="og:image" content="İMAGE URL" />
    <meta property="fb:app_id" content="000xxx"/> 
    <meta property="fb:admins" content="11xxx"/>

First time,comments plugin moderation tool was not working in my page too.

Important! You must add this tag to html code of page.

<html prefix="og: http://ogp.me/ns#">

Then, wait several minute. Write something. Plugin will working.

P.S. Of course you must use "app id" in the javascript codes.

<div id="fb-root"></div>
    <script type="text/javascript" language="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_US/all.js#xfbml=1&appId=[APP İD]";
          fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));
</script>

Solution 5

The problem is re-indexing (scraping) 1. Open https://developers.facebook.com/tools/debug/sharing/ 2. Enter and check url 3. Look at section "When and how we last scraped the URL"

If page is not scraped new comments will not be shown in moderation panel. After I have pressed button "Scrape again" comments works fine. Don't forget re-scrape each existing page (new pages works fine).

Share:
31,919

Related videos on Youtube

gleasonomicon
Author by

gleasonomicon

Updated on June 12, 2020

Comments

  • gleasonomicon
    gleasonomicon almost 4 years

    I'm trying to set up the Facebook comments social plugin. The plugin will be set up so that each product page on our site will have a comments plugin with a unique URL. I want to be able to moderate all the comments together, which should be able to be done with the comments moderator tool on Facebook.

    I can put the social plugin on the page with it linked to the respective app ID, but I don't see any comments appear on the moderation tool at: https://developers.facebook.com/tools/comments

    The code on the page is this:

    <div id="fb-root"></div>
    <script type="text/javascript" language="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_US/all.js#xfbml=1&appId=[appid]";
         fjs.parentNode.insertBefore(js, fjs);
      }(document, 'script', 'facebook-jssdk'));
    </script>
    

    Then later...

    <meta property="fb:app_id" content="[appdid]"/>
    <div class="fb-comments" data-href="http://www.testtesttest.com/" data-num-posts="2" data-width="" data-colorscheme="dark"></div>
    

    It's important to note that for now I'm actually using the URL testtesttest.com, but I am putting in my actual app ID in the app ID spots.

    I do this and can post comments to the page fine. However, I see nothing in the moderation tool. Any suggestions on what I could be doing wrong? Has anyone gotten this to work successfully? I'm not sure if my app is set up wrong, or there is a url match issue, or domain issue. I'm not sure where to start.

    Thanks!

    • DMCS
      DMCS over 12 years
      I'm following this one too. I've got the same issues with comment moderation and I'm even specifying fb admin ids too and having the fb admin like the page (per the documentation) and still nothing.
    • aruno
      aruno about 8 years
      It's unclear if you own testtesttest.com or not. If the app_id tag is not present ON testtesttest.com then it won't work. Otherwise you could just put any old URL and moderate comments for other people's sites.
  • Luis Robles
    Luis Robles almost 11 years
    Dont forget: <meta property="og:type" content="TYPE"/> and <meta property="og:site_name" content="SITE NAME"/>
  • Michael
    Michael over 10 years
    To see changes imidietly, refresh facebook cache by fetching your url with developers.facebook.com/tools/debug Without it i saw no changes (no moderation view)
  • aruno
    aruno about 8 years
    which of these are really NEEDED. You REALLY NEED image for comments to work? that just makes no sense. Did you confirm 100% this is true?
  • aruno
    aruno about 8 years
    also according to comments plugin developers.facebook.com/docs/plugins/comments you're supposed to provide app_id OR fb:admins but not both
  • Mittal Patel
    Mittal Patel about 8 years
    Not all of these properties need to be set. You need to set app_id only. After setting app_id on page as Michael has suggested go to developers.facebook.com/tools/debug page and scrape the page again then only you get to see the changes.
  • Mittal Patel
    Mittal Patel about 8 years
    Facebook shows changes as per the data it has scraped for that page and it's not scraping data frequently so you have to wait. If you don't want to take a break then go to developers.facebook.com/tools/debug enter your page URL and "Scrape Again". It will start reflecting your changes instantly.
  • jamil
    jamil almost 5 years
    Must have og:url, etc? Is this stated in documentation anywhere?
  • krupesh Anadkat
    krupesh Anadkat almost 5 years
    100% true.. After adding myself as moderator, only then i could see that Moderation tool in comment box and hide people's comment. Thankyou for this.. Wasted more than 5 hours, this helped!