29 minutes ago · 7 min read1484 words · Tech · hide

Paste a link into Mastodon, Slack or most social media sites and it usually turns into a card, with a title, a line of description and sometimes a big picture. The picture is what makes people notice the link in a busy feed. Without one, it’s just a line of text. For a long time, every post on this blog shared the same image: my avatar and name on a white card with a yellow dotted border. It looked fine, but it said nothing about the post, and a feed of my links was a feed of identical cards. But first, what the heck is Open Graph? Those cards come from the Open Graph protocol, which Facebook introduced in 2010. It’s a small set of <meta> tags in a page’s <head> that describe the page, so anything that previews a link can build a card without guessing. The protocol sums up its purpose like this: The Open Graph protocol enables any web page to become a rich object in a social graph. Four tags are required, and og:description is an optional extra that most platforms show as well: <meta…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town