OG images and link previews: every guide
How link previews work on X, LinkedIn, Slack, Discord, WhatsApp and iMessage, what size the image should be, why it sometimes doesn't show, and how to set it up on each platform and framework.
Start here
All 15 guides
OG image size: use 1200 × 630, and here's what each platform does with it1200×630 works everywhere. What X, LinkedIn, Facebook, Slack and iMessage crop, and the tags to paste.
What is Open Graph? The tags behind every link previewWhat Open Graph is, the four tags every page needs, the optional ones, and which apps read them. With code to paste.
OG image not showing? Nine causes, in the order to check themNine reasons a link preview breaks on X, LinkedIn, Slack or WhatsApp, in the order to check them, and how to refresh each cache.
OG image templates: eight layouts, ready to fill inEight 1200×630 OG image templates for SaaS, apps, launches and blog posts. Open one, type your name and download.
OG image examples: six layouts that work, with real onesWhat an OG image is, six layouts that work for products and posts, and real examples you can copy.
We checked the link previews of 592 new launches. One in four had no image.We checked 592 sites launched on Show HN in one week. 26% had no OG image; only 59% had a link preview set up fully right.
Discord link embeds: how to get the large image and your own colorHow Discord builds link embeds, how to get the big image, and the embed color.
Slack link preview: what Slack shows, and how to fix a missing unfurlWhat Slack shows when your link is posted, why the image is tiny, and how to fix a missing unfurl.
WhatsApp link preview: why the image doesn't show, and how to fix itWhy WhatsApp drops the image, the file-size limit people hit, and how to refresh.
Next.js OG images: the static file, the dynamic route, and the metadataBase trapStatic opengraph-image files, dynamic ones with ImageResponse, metadataBase, twitter:card and the preview-deployment trap.
Astro OG image: meta tags in your layout, with absolute URLsOpen Graph tags in an Astro layout with absolute URLs from Astro.site, and per-page images.
WordPress OG image: setting the social image, and the duplicate-tag trapWordPress needs a plugin or theme for Open Graph tags. Where to set the image, and the duplicate-tag trap.
Webflow OG image: per page, for CMS items, and the missing site-wide defaultWebflow sets the Open Graph image per page; how to cover every page, CMS items and the missing site-wide default.
Framer OG image: set the social preview for the site, each page and CMS itemsWhere Framer's social image lives: the site default, the per-page override and CMS pages.
Shopify OG image: the social sharing image, theme overrides and locked storesThe Shopify social sharing image setting, how the theme can override it, and why a locked store shows nothing.