• Resolved StephenMasker

    (@stephenmasker)


    Hello,

    I am experiencing an issue with new posts publishing to my Facebook fan page. To clarify, published posts are appearing on every social media network I have connected to WordPress with the exception of my Facebook fan page.

    After much research, I’ve discovered – using the Facebook debugger tool (https://developers.facebook.com/tools/debug/) – that there appears to be error with the theme I’m currently using, DW Minion.

    Regardless of whether I enter my blog’s URL (https://stephenmasker.com/blog/) or an article specific URL (https://stephenmasker.com/blog/society6/), *all* of my blog URL’s return an error in Facebook’s debugger tool, which reads:

    Object Missing a Required Value: Object at URL ‘https://stephenmasker.com/blog’ of type ‘article’ is invalid because a required property ‘og:image:url’ of type ‘url’ was not provided.

    Further, I believe this error is theme related because when I switched to *any other theme* – for example, Virtue (https://www.ads-software.com/themes/virtue) – the error is resolved. Additionally, other themes not only resolve the error produced in the Facebook debugger tool, but they also all publish articles to Facebook without issue.

    Lastly, I have uninstalled & reinstalled the Facebook WordPress app (via Facebook) countless times, deactivated and reactivated my social media accounts (via the WordPress dashboard), and, I’ve deactivated all plugins. After all of this, I ran the FB debugger tool again (on any given URL on my blog), and still the error persists.

    I am confident that an articles failure to publish to my Facebook fan page is a theme related issue.

    Could you please look into the error I’m receiving and its relationship to DW Minion?

    Thank you for your time,
    Steve

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author DesignWall

    (@designwall)

    Hi Steve,

    To resolve this issue, please open up the functions.php file in themes/dw-minion folder, find the code below (around line 67):

    <meta property="og:image" content="<?php echo $thumb[0] ?>" />

    and change it into this:

    <meta property="og:image" content="<?php echo $thumb[0] ?>" />
    <meta property="og:title" content="<?php echo get_the_title() ?>" />
    <meta property="og:url" content="<?php echo get_permalink() ?>" />
    <meta property="og:description" content="<?php echo esc_html( get_the_excerpt() ) ?>"/>

    Hope that helps!

    Thread Starter StephenMasker

    (@stephenmasker)

    I’ve applied and saved the code above, however, Facebook’s debugger now reads a new error:

    More Than One OG URL Specified: Object at URL ‘https://stephenmasker.com/blog/society6/&#8217; of type ‘article’ is invalid because it specifies multiple ‘og:url’ values: https://stephenmasker.com/blog/society6/, https://stephenmasker.com/blog/society6/.

    Theme Author DesignWall

    (@designwall)

    Hi Steve,

    Please replace the code above with the following code:

    <?php if( is_single() ){  ?>
    <meta property="og:image" content="<?php echo $thumb[0] ?>" />
    <meta property="og:title" content="<?php echo get_the_title() ?>" />
    <meta property="og:url" content="<?php echo get_permalink() ?>" />
    <meta property="og:description" content="<?php echo esc_html( get_the_excerpt() ) ?>"/>
    <?php } else { ?>
    <meta property="og:url" content="<?php echo get_permalink() ?>" />
    <?php } ?>

    If the problem persists, please raise your issue to our support page (https://www.designwall.com/question/) and send us your WP admin for checking.

    Regards,

    Thread Starter StephenMasker

    (@stephenmasker)

    Thank you.

    I have raised the issue to the support page, as the code above also did not resolve the error message.

    A link to the support discussion may be located here: https://www.designwall.com/question/posts-dont-publish-to-facebook/

    Steve

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Posts don't publish to Facebook’ is closed to new replies.