OG Metadata Missing from Social but displayed in Source Code

#723324
  • Resolved Christopher Johnson
    Rank Math free

    Hi,

    We’ve recently started having an issue where our images are no longer displaying for sharing on social media and traced it back to see that none of our OG metadata seems to be recognized by LinkedIn, Facebook, etc., even though the metadata appears to be displaying fine in the page source code, right after the <head>. We’ve followed all of the troubleshooting from your webpage, to no avail, which has brought us here.

    This all worked fine for months for us, and we have made no major changes to our website recently, so we’re at a loss as to what happened here. We’re also, of course, very concerned with the effect on our SEO, and we cannot share any of our content effectively on social media until this is resolved.

    All help here is much appreciated. Thanks!

Viewing 5 replies - 31 through 35 (of 35 total)
  • Hello,

    Thank you for sharing the FTP access.

    The Rank Math plugin runs through different image sizes and uses the smallest recommended size in the opengraph tags. To ensure it uses the full image size, I have added the following filter code to your theme’s functions.php file:

    
    add_filter( 'rank_math/opengraph/image_sizes', function( $sizes ) {
        return [ 'full' ];
    } );
    

    You will now see the original image width and height in the opengraph tags.

    Regarding the missing Publication Date error displayed in the LinkedIn Debugger, there isn’t much documentation available on adding the Publication date supported by LinkedIn Share. Hence, we are unable to add it at the moment. Once we find more information about this, we’ll incorporate it into the plugin.

    Hope that helps.

    Hi,

    So that code addition to functions.php did not work the way you expected it to – with that code added, all of the images being pulled by the Facebook Sharing Debugger started defaulting to our default OpenGraph Thumbnail (currently our logo), rather than using the large thumbnail of the featured image for each post, as they should be.

    Once we removed that code addition from the functions.php, the images displayed correctly again, but now we are back to the incorrect og:image:width and og:image:height being defined for each image.

    Can you please take another look here?

    Thanks!

    Hello,

    Apologies, we didn’t notice it earlier. We have now modified the code on line 60 in seo-by-rank-math/includes/opengraph/class-image.php:

    Replaced: 'max_width' => 2000,
    With: 'max_width' => 3000,

    This is the maximum width dimension we use when adding an image to the OpenGraph tag. If an image of this width exists, we use the smaller variant of the image. Our development team is also investigating this issue on their local setup, and a permanent fix will be included in the upcoming update.

    Hope that helps.

    Hi,

    While there haven’t been any updates on this thread for awhile, we noticed that you’re still working on things through our site, which is great. However, there was a test post, “Post to test large images issue on OG”, that was marked as no-index for search engines, but was left live and displaying to all users on our Resources page without our knowledge since 3/13, and which we can’t just leave hanging out there.

    We went ahead and deleted this test post, but please make sure that any test posts like this aren’t left live indefinitely for all users to see.

    Thanks!

    Hello,

    I’m the one who created the test page but had set it to no-index ( a draft would have been better, since it would be accessible to admin|editors only ).

    For the fix, we have applied a patch by editing one of our plugin file.

    This patch will also be included in an upcoming release.

    We apologize for any inconveniences that might have been caused by this issue.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 5 replies - 31 through 35 (of 35 total)

The ticket ‘OG Metadata Missing from Social but displayed in Source Code’ is closed to new replies.