there, I have followed your instruction videos and seem

Hi there, I have followed your instruction videos and seem to have everything set up but a couple of things are not quite working:

1. Comments in the Facebook box on the blog do not appear in Facebook (even though i do get a Facebook ‘notification’ that someone has commented).

2. in the section ‘Map WordPress types to Facebook locations’, autopost only seems to work for the very top option. I’ve tried putting both my personal page and my business page at the top and I can’t autopost to both at the same time – only the one that is at the top at the time of posting to the blog.

Hope you can help. Thanks so much.

  • Jude
    • DEV MAN

    Howdy @Oliver

    2) This is likely an issue where you have not granted this app enough permissions. Can you quickly check your FB app permissions one

    Also please be sure you have checked Use Facebook for comments under Facebook > Facebook Settings > Facebook Comments in your admin (screenshot). You may also want to check Override WordPress discussion settings if you want just Facebook comments; no WP comments box.

    If that is not working, then you may need to use a custom hook as explained at the bottom of that section of the settings.

    Also there might be a conflict that can easily ruled out after doing quick plugin conflict test as illustrated in our getting support manual.

    https://wpmudev.com/manuals/using-wpmu-dev/getting-support/

    2) This is due to changes in the Facebook API. More information can be found in their changelog here: https://developers.facebook.com/docs/apps/changelog

    Cheers

    Jude

  • Oliver
    • New Recruit

    Thanks Michelle, although I’m afraid I’m not having any luck still. I’ve also tried removing all other plugins.

    Will I need to set up a custom hook? If so, I’m not sure where/how to add this code: <?php do_action(“my_action_name”:wink:;?>

    I’m using Divi from Elegant Themes – would you have any idea please?

  • Michelle Shull
    • DEV MAN’s Apprentice

    Hi Oliver!

    If all else has failed, yep, it’s time to move on to dropping in that line of code. Fortunately, this isn’t going to be hard. : )

    First off, are you using a child theme for Divi? If not, you should be. I believe Elegant Themes even makes child theme starters for each of their themes.

    Divi should have a template file called single.php. If you have a lot of custom post types, you may have multiple files that look like single-classifieds.php or something similar. You’re going to move a copy of single.php from the Divi parent folder to the child theme folder.

    Now, open download and edit the single.php file you just added to your child theme.

    If you scroll through the file, you’ll see lots of code, but it’s pretty simple to understand what’s happening. There will be a part that calls the Loop, which is what displays your posts and other post-esque content. Below the loop, you should see something about comments. If the Divi team was awesome, there should even be a comment about comments in the PHP file to let you know where they are.

    Copy anything that looks like it’s related to comments here, and I’ll tell you where exactly to put that snippet. :slight_smile:

    Thanks, Oliver!

    If you can’t find it, don’t worry, I’ll have you send in some details and I can take care of it via FTP.

    https://wpmudev.com/contact/

    Subject: “Attn: Michelle Shull

    -WordPress admin username

    -WordPress admin password

    -login url

    -FTP credentials (host/username/password)

    -link back to this thread for reference

    -any other relevant urls

    Select “I have a different question” for your topic – this and the subject line ensure that it gets assigned to me.

    Thanks!

  • Oliver
    • New Recruit

    Hi Michelle

    Thanks so much for this. Below is a snippet of the code I think you are referring to:

    }

    ?>

    <?php

    if ( ( comments_open() || get_comments_number() ) && ‘on’ == et_get_option( ‘divi_show_postcomments’, ‘on’ ) )

    comments_template( ”, true );

    ?>

    </article> <!– .et_pb_post –>

    Many thanks

    Oliver

  • Jude
    • DEV MAN

    Hey @Oliver

    Just chipping in here with where to add that code in

    }
    ?>
    <?php do_action("my_action_name");?>
    <?php
    if ( ( comments_open() || get_comments_number() ) && 'on' == et_get_option( 'divi_show_postcomments', 'on' ) )
    comments_template( '', true );
    ?>
    </article> <!-- .et_pb_post -->

    Cheers

    Jude