Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Steve M

    (@wpsmort)

    This is a known Facebook issue. We’ve been waiting for them to fix it. If the Fetch new scrape information button on the debug tool doesn’t work then there’s nothing you can do.

    Both those posts look fine, All in One SEO Pack is working correctly.

    Hi, wpsmort Support Manager at Semper Fi with this code seems to work.

    og:image:width and og:image:height meta tag added

    <?php

    if(is_single()) {

    $featured_image_id = get_post_thumbnail_id(); // Attachment ID

    $featured_image_attributes = wp_get_attachment_image_src( $featured_image_id, ‘full’ ); // Returns Image Attributes Array
    if( $featured_image_attributes ) {
    echo ‘<meta property=”og:image:width” content=”‘;
    echo $featured_image_attributes[1];
    echo ‘” />’;
    echo ‘<meta property=”og:image:height” content=”‘;
    echo $featured_image_attributes[2];
    echo ‘” />’;
    }

    } ?>

    Plugin Support Steve M

    (@wpsmort)

    Hi nagol81,

    We have settings for outputting the OG Image width and height but Facebook does not always obey this, so this code may work but Facebook may also ignore the width and height parameters you output.

    With this code the facebook issue disappeared for my site.

    Thread Starter nicoladelledonne

    (@nicoladelledonne)

    This issue is now reported as fixed by FB:

    https://developers.facebook.com/bugs/978421888869140

    My links are working fine now.
    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Facebook sharing issue’ is closed to new replies.