Your OG tags look fine in the browser and still break on Twitter — here's the part I got wrong
DEV Community
Your OG tags look fine in the browser and still break on Twitter — here's the part I got wrong
I built a social-preview extension that read document.head and told me everything was fine. Crawlers don't run JavaScript, so my tool was reading a page that Twitter and Slack never see. Here's the diff that fixed it, plus two smaller traps: relative og:image URLs and counting characters the wrong way.
0 comments
No comments yet.