Okay
  Public Ticket #164521
Facebook Comments Administration
Closed

Comments

  • Bugra started the conversation
    Hello. I was wondering how to administrate the Facebook comments. Normally we should create an app on Fb so it let's us administrate comments but as this is preinstalled, it is not linked to my Facebook account. So I was wondering how this system works. Thanks!
  •  93
    djwd replied

    Hi there,

    at the time of PowerMag release, comment moderation wasn't an available option. I just made a quick google search and it looks like you need to add this line to the header of your posts ( -> header.php)

    <meta property="fb:admins" content="{YOUR_FACEBOOK_USER_ID}"/>

    Source

    Hope this helps
    djwd

    Regards
    djwd

  • Bugra replied

    This doesn't seem to work. I think we also need to change the app ID.

    When you get the code from FB it gives you a set of codes. One to be placed where we want the comment box to be and the other is the main code. Could you tell me where that main code is so I can try to change the app ID?

  •  93
    djwd replied

    Sure, Facebook sdk is located in partials/part-fb-sdk.php

    Regards
    djwd

    Regards
    djwd

  • Bugra replied

    I dont seem to find the file you mentioned though.. Where exactly is the app code located so that i can change it ???

  •  93
    djwd replied

    Apologies, my mistake.

    The Facebook SDK code is located in content-single.php starting from line 9.

    Regards
    djwd

    Regards
    djwd

  • Bugra replied

    <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/es_MX/all.js#xfbml=1<---!// &appId=APP--ID--GOES--HERE"; //!--->
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

     

    Hello, above is the code that you have on the page that you mentioned. The part inbetween <--!// //!--> is missing there obviously as APP ID is a personal number. I am not a wordpress nor php master, but I am thinking maybe if you place something like a variable that can be edited from the Theme Options page, to let people add their own app ID and if they leave it blank to make it appear just as it is right now, that could be very useful for your clients. I did it manually, and it works, but it would be as I said very useful.

    By the way adding the APP ID above is not enough, as you mentioned, the meta tag has to be placed with the facebook ID in order to moderate comments.

    Just a recommendation.

  •  93
    djwd replied

    Thank you for the update.

    As I said at the time FB comments were implemented, that option wasn't available. I'll definitely consider adding this as an option in future updates, thanks again for your feedback.

    Regards
    djwd

    Regards
    djwd