Hello,
We apologize for the issue you are facing with sharing to LinkedIn. It seems that LinkedIn is looking for the name="image" tag in addition to the og:image tag. However, the Open Graph protocol primarily uses the og:image tag to specify the image that should be displayed when a page is shared on social media platforms, including LinkedIn.
In your case, you already have the og:image tag correctly set up:
While LinkedIn may not recognize the og:image tag in some cases, it is generally the correct way to specify images for sharing. Unfortunately, we do not have specific information on how to add a name="image" tag as it is not part of the standard Open Graph implementation.
If you continue to experience issues, we recommend replying to this ticket, and a human agent from the Rank Math Support team will be able to assist you further. Thank you for raising this concern!
It might not be to Open Graph protocol, but I’d expect support for sharing to such a major social network to be supported.
Hello,
Thank you for contacting us. We apologize for any inconvenience this issue may have caused.
Please note that LinkedIn prioritizes the oEmbed code instead of the OpenGraph meta tags, that’s why your OpenGraph is not being used when sharing.
For a workaround, you can add this in the last line of your active theme’s functions.php file, and this will remove the links on your site:
remove_action( 'wp_head', 'wp_oembed_add_discovery_links', 10 );
Once done, clear your website’s cache and check again using the inspector tool. https://www.linkedin.com/post-inspector/
Let us know how it goes. Looking forward to helping you.
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.