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

OpenGraph Image Missing `name=image` Property Causes Image Not Loading

Open arimgibson opened this issue 1 year ago • 0 comments

Sites using OpenGraph wouldn't recognize my image and I wasn't sure why. Used LinkedIn's Post Inspector tool which mentions a name=image property on the og:image meta tag. Using the extend functionality to create this meta tag myself fixed the issue. It's strange because OpenGraph's docs don't indicate this being required...

I'm happy to PR but wanted to submit this as a bug first.

You can serve this repro with ngrok to paste the link into the Post Inspector. Visit src/layouts/Base.astro and swap out my old ngrok URL with yours. And make sure to use the same commit as linked! https://github.com/ari-gibson-consulting-llc/brielle-french-design/tree/8a05ec2ffcf372c2841f0ca416c0273cadae6626

arimgibson avatar Feb 11 '24 19:02 arimgibson