OpenGraph meta for facebook, linkedin and twitter
NickName:user1406440 Ask DateTime:2017-09-22T22:52:37

OpenGraph meta for facebook, linkedin and twitter

I'm trying to make sure that when my website is shared the correct meta information is displayed. I thought I had it working but I'm experiencing a few issues on different social websites, as follows:

  • Twitter pulls in the text but doesn't display the specified image.
  • LinkedIn displays text but seems to use the wrong image so it's stretched.
  • Facebook doesn't display anything. If I post the URL, that's all that's displayed as a hyperlink.

Originally I just had the meta name="twitter: stuff but have since added the meta property="og: above it as I was told that was needed for LinkedIn.

This is the meta/OpenGraph data I'm using in my website head:

<!-- OpenGraph -->
<meta property="og:title" content="myurl.com - What this website is" />
<meta property="og:description" content="Specialising in lorem ipsum dolor sit amet, consectetur adipiscing elit sed do eiusmod." />
<meta property="og:url" content="http://myurl.com" />
<meta property="og:image" content="/img/site/linkedin-media-image.png" />

<!-- Twitter -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@twitteruser">
<meta name="twitter:url" content="https://myurl.com">
<meta name="twitter:title" content="I am a lorem ipsum dolor sit amet, consectetur adipiscing elit sed do eiusmod.">
<meta name="twitter:description" content="Specialising in lorem ipsum dolor sit amet, consectetur adipiscing elit sed do eiusmod.">
<meta name="twitter:image" content="/img/site/social-logo.png">

Can anyone spot what I'm missing? Twitter seems ok, aside from the image not display and the URL is correct. While LinkedIn doesn't use the og correctly and Facebook is non-existent?

Thanks in advance.

Copyright Notice:Content Author:「user1406440」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/46367606/opengraph-meta-for-facebook-linkedin-and-twitter

Answers
dparkar 2017-11-12T02:16:37

Image requires a full path, I tried relative as well but didn't work.\nYour use of "twitter:url", "twitter:title", twitter:description" and "twitter:image" is redundant unless you want different behavior for twitter only. If these tags are not found, twitter will fall back to OGP tags.\nFor Facebook, you might be missing the following :\n<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">\n\nTools to debug OG preview :\n\nFacebook\nTwitter\nLinkedIn\n\nMy problem is, LinkedIn seems to stretch the image in spite of their documentation saying that minimum size is 80 x 150px to prevent it from being artificially stretched to fit the layout.",


More about “OpenGraph meta for facebook, linkedin and twitter” related questions

OpenGraph meta for facebook, linkedin and twitter

I'm trying to make sure that when my website is shared the correct meta information is displayed. I thought I had it working but I'm experiencing a few issues on different social websites, as follo...

Show Detail

og:image meta tag is not found by LinkedIn and Facebook

I got a problem with my og meta tags. All my og meta tags are read by LinkedIn, Facebook, and all the other which use the og meta tags. I used https://www.linkedin.com/post-inspector/inspect/https:...

Show Detail

Facebook and Linkedin Share buttons

I have put up facebook and Linkedin share buttons on a page in my website. I have set the fb opengraph tags for that page. I have also set up the meta tags with description i want to share on FB and

Show Detail

Website Meta Not Pulling Through to Facebook, Twitter or Linkedin

I have been having some issues with metatags on my website. Open graph validators all recognise that I have meta data available on each page however neither facebook, twitter or linkedin seem able to

Show Detail

OpenGraph Links not displaying on Linkedin (but does display on facebook)

The Opengraph tagging on [a site I develop][1] is setup as well as I can tell. Works fine on facebook but 'can't be displayed on linkedin'. Having done my research I'm aware of the caching period ...

Show Detail

what are the APIs that support linkedin,twitter and facebook?

im trying to integrate linkedin,twitter and facebook into my app.Im facing so many problems.Headersearch paths,library paths are not fixed properly.I heard that there are some APIs which support li...

Show Detail

Facebook, Twitter, LinkedIn share link count

Is there any way to get the number of users to share a link on Facebook, Twitter, and LinkedIn? Example: How many times some link was shared to Facebook, Twitter, and LinkedIn to calculate the popu...

Show Detail

My OpenGraph is not working to any social media platform like Discord, Twitter and Facebook

Based on facebook debug here's the error. But I don't think That's the problem in SSL Error My SSL is provided by Let's Encrypt. For the other errors meta og is already there for like 48hours now ...

Show Detail

logout API facebook, twitter, linkedin

I have code for logout for facebook twitter and linkedin facebook [facebookObj logout:self]; Twitter [twitterObj endUserSession]; LinkedIn static NSString *const kOAuthInvalidateTokenURL ...

Show Detail

Share a URL that is shareable on Facebook on LinkedIn

I've worked on sharing dynamic content to be shareable on Facebook populating OpenGraph tags, I know LinkedIn uses OpenGraph tags. To my surprise when I've tried sharing the same url on LinkedIn n...

Show Detail