How Open Graph Tags Control the Preview Cards Shown When Links Are Shared
When a link is pasted into X or Facebook, the platform builds a preview card with a title, description, and image, drawn from metadata the page itself publishes. That metadata is the Open Graph Protocol (OGP), proposed by Facebook in 2010 and now widely adopted across platforms such as X, LINE, and Slack. A basic card relies on four tags: og:title, og:description, og:image, and og:url, which the platform's crawler reads separately from normal browser rendering. The article also covers og:type, image dimensions, and X-specific twitter: tags, using the author's blog as an example. It further explains how an image is chosen, prioritizing a featured image, then a cached generated image, then a dynamic fallback, and finally a site-wide default.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in