Facebook – meta property="og:image" problem

This topic has 2 replies, 2 voices, and was last updated 8 years, 2 months ago ago by Eva Kemp

  • Avatar: PcNetLab
    PcNetLab
    Participant
    February 15, 2016 at 16:26

    Hello,
    i have a problem when i want to share my website in facebook, it shows as image this file “wp-content/themes/woopress/images/staticks/facebook-default.jpg” and it doesn’t take any other photos from the page.
    I tried to fix it using Yoast SEO plugin and by enabling his Open Graph meta data, but then Facebook Debug website states this error :

    Object at URL ‘http://artholic.gr/’ of type ‘article’ is invalid because it specifies multiple ‘og:url’ values

    Well what do you suggest me to do to correct the problem with the facebook image and by not using your default image link.

    Thank you

    1 Answer
    Avatar: Eva
    Eva Kemp
    Support staff
    February 15, 2016 at 17:14

    Hello,

    If you don’t want to use our default facebook image then you can edit the file wp-content/themes/woopress/framework/theme-functions.php and remove the code in the section “Add Facebook Open Graph Meta Data”:

    echo '<meta property="og:title" content="' . get_the_title() . '"/>';
    echo '<meta property="og:type" content="article"/>';
    echo '<meta property="og:description" content="' . $description . '"/>';
    echo '<meta property="og:url" content="' . get_permalink() . '"/>';
    echo '<meta property="og:site_name" content="'. get_bloginfo('name') .'"/>';

    Regards,
    Eva Kemp.

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.