my website is currently running on HTTPS://. i am leveraging add this for social functionality.
Problem: i face following problems on linkedin sharing.
a) Most of time only half of the image comes b) Some time image does not appear.
Questions:
1) Can i put both og:image:secure_url and og:image on page for linkedin and facebook. if Yes, what should be the order. Example:
<meta property="og:image" content="http://example.com/ogp.jpg" />
<meta property="og:image:secure_url" content="https://secure.example.com/ogp.jpg" />
2) Do following are mandatory for linked in and facebook to show images properly.
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="400" />
<meta property="og:image:height" content="300" />
any solution, but it should work on both linkedin and facebook.
og:image:secure_url - An alternate url to use if the webpage requires HTTPS. og:image:type - A MIME type for this image. og:image:width - The number of pixels wide.
Open Graph meta tags are snippets of code that control how URLs are displayed when shared on social media. They're part of Facebook's Open Graph protocol and are also used by other social media sites, including LinkedIn and Twitter (if Twitter Cards are absent). You can find them in the <head> section of a webpage.
An open graph image or OG image is the image that appears when you post website or video content to your social accounts. It is part of an important group of meta tags that influence the performance of your content link on social media like Facebook, Linkedin, Pinterest and Twitter.
Inferred Property The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags. If you do not have the Open Graph tags specified, then Facebook will only fill in the gaps for the image, title, and description.
1) Yes, and based on http://ogp.me/#structured, this will tell the crawling service that "the webpage requires HTTPS".
2) These are not required, as FB and LinkedIn will form the correct size regardless. Remember that LinkedIn explicitly has minimum requirements whereas FB does not.
Here's what I discovered recently with these tags and the latest open graph protocol (June 2019).
og:image
(not og:image:secure_url
)og:image
currently supports secure (https
) for the content
valueHope it helps as I find the documentation hard to follow with these specific details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With