I am implementing the post sharing on linkedin and I want to url og:image to be appear on linkedin when the post is shared. But even I have added the correct url to og:image meta tag. It is not appearing in the share dialogue neither on the linkedin after sharing the post.
This is the url I am using to share my post on linkedin:
https://www.linkedin.com/shareArticle?mini=true&url=http://my_website.com:9000/post/40420&title=Test&summary=Description&source=MyWebsite
LinkedIn has this requirements for sharing (but be careful as the quotes look wrong on the LinkedIn webpage - ' matched with ")
Below are the og: tags that must exist and their correct format:
<meta property='og:title' content='Title of the article"/>
<meta property='og:image' content='//media.example.com/ 1234567.jpg"/>
<meta property='og:description' content='Description that will show in the preview"/>
<meta property='og:url' content='//www.example.com/URL of the article" />
Here are the image requirements specific to the LinkedIn sharing module:
You can find more details here: https://www.linkedin.com/help/linkedin/answer/46687/making-your-website-shareable-on-linkedin?lang=en