syntaxfm / website

Syntax Podcast Website
https://syntax.fm
MIT License
1.02k stars 495 forks source link

OG Images arent working on Linked In #1377

Closed wesbos closed 10 months ago

wesbos commented 11 months ago
Screenshot 2023-11-14 at 2 47 05 PM

related? https://stackoverflow.com/questions/10042786/how-to-successfully-implement-ogimage-for-linkedin

wesbos commented 10 months ago

Adding prefix="og: http://ogp.me/ns#" to the meta tags doesn't seem to fix it. Polypane not seeing any issues either

Screenshot 2023-11-27 at 10 58 33 AM
wesbos commented 10 months ago

Facebook debugger says it's good, but we're missing the og:url. Ill try add that.

Screenshot 2023-11-27 at 11 04 35 AM
wesbos commented 10 months ago

yeeesh. looks like we had a hardcoded canonical URL in the svelte template. Probably not good for SEO

Screenshot 2023-11-27 at 11 17 05 AM
wesbos commented 10 months ago

turns out Linked In was somehow side-stepping the Vercel CDN cache, so the generation was taking too long, and it was ignoring the file. Fixed it by also caching the output in Redis. This is better than memory because it spans all serverless regions

https://github.com/syntaxfm/website/pull/1399