next-seo icon indicating copy to clipboard operation
next-seo copied to clipboard

meta tags on Linkedin not working as it requires both name and property to be in meta tags.

Open GorvGoyl opened this issue 2 years ago • 7 comments

Meta tags on Linkedin are not working as it requires both name and property to be in meta tags.

URL to inspect OG tags on Linkedin: https://www.linkedin.com/post-inspector/inspect/https:%2F%2Fgourav.io%2Fblog%2Fautohotkey-scripts-windows

Tags which are not working: title, Image, Description, Author

All three name, property, and content should be there.

CleanShot 2022-03-14 at 15 24 37@2x CleanShot 2022-03-14 at 15 22 15@2x CleanShot 2022-03-14 at 15 22 31@2x

Also, the author tags needs to be name instead of property

CleanShot 2022-03-14 at 15 22 56@2x

GorvGoyl avatar Mar 14 '22 09:03 GorvGoyl

I'm facing the same situation here. Pretty embarrassing.

philohelp avatar Mar 14 '22 19:03 philohelp

Anyone update on this issue?

@GorvGoyl I see that your link is shown properly in Post inspector. How did you solved this?

ernests avatar Aug 11 '22 07:08 ernests

@ernests it's taking props from the homepage instead of that specific link

GorvGoyl avatar Aug 12 '22 15:08 GorvGoyl

Solved the problem. First of all I had a typo in canonical url tag (og:url). Apparently linkedin fetch this url and then checks all the tags. Second, I used NextSeo additionalMetaTags option to add tags it wouldn't see.

ernests avatar Aug 16 '22 14:08 ernests

@ernests, I'm still facing the issue... could you share that page link so that I can match my metatags and find the root cause

GorvGoyl avatar Aug 16 '22 17:08 GorvGoyl

@GorvGoyl As I had typo in og:url, I did bunch of changes and I'm not sure what exactly worked out (woodoo debugging).

By looking at your page, I think you have similar problem with Canonical url. LI post inspector has picked your domain name as Canonical url. It redirects to it and picks tags from there. By looking at your code I see that you have set meta canonical to your blog article. Try to set it to your domain name.

There has been bunch of stackoverflow questions regarding LI meta tags. Here are some links to dig into: https://stackoverflow.com/questions/58236219/open-graph-description-meta-tag-is-not-working-in-linkedin https://www.revoltlib.com/linkedin-social-share-url-broken-ticket.html

Only thing which doesn't work now for Linkedin post inspector is Publish date. Haven't figured out why it won't pick it. SO topic on this - https://stackoverflow.com/questions/58511410/creating-meta-tags-for-linkedin-publish-date-not-found

ernests avatar Aug 17 '22 08:08 ernests

I had the same issue and for me, it was realizing that my og:url property was missing the https:// prefix. Without it, LinkedIn was ingesting my canonical URL incorrectly (it led to my 404 page, which meant the og:tags that were being read were my homepage's). Hope this helps somebody.

0xjessel avatar Sep 12 '22 05:09 0xjessel

Thanks for the follow up info everyone. Always very helpful.

garmeeh avatar Oct 15 '22 12:10 garmeeh