# Peekly
> Paste any URL to preview X, Discord, Slack, LinkedIn, Facebook, and WhatsApp. Pass/fail Open Graph checklist + copy-ready tags. Free, no signup.
Peekly (https://linkcard-tau.vercel.app/) checks one public URL for free, with no signup. The homepage runs the check. The other links are the free platform checkers and the guides.
## Checkers
- [Peekly — Free Open Graph & link-preview checker](https://linkcard-tau.vercel.app/): Paste any URL to preview X, Discord, Slack, LinkedIn, Facebook, and WhatsApp. Pass/fail Open Graph checklist + copy-ready tags. Free, no signup.
- [Twitter Card Validator](https://linkcard-tau.vercel.app/twitter-card-validator): Free Twitter / X card validator. Paste a URL to preview your summary_large_image card, find missing twitter: tags, and copy a fixed meta block.
- [Open Graph Checker](https://linkcard-tau.vercel.app/open-graph-checker): Free Open Graph checker. Test og:title, og:description and og:image, check image size and aspect ratio, and preview your link on Facebook, LinkedIn, Discord, Slack and WhatsApp.
- [LinkedIn Link Preview Checker](https://linkcard-tau.vercel.app/linkedin-link-preview): See how your URL will look when shared on LinkedIn. Find out why the preview image or title is missing and copy the Open Graph tags that fix it.
- [Discord Embed Preview](https://linkcard-tau.vercel.app/discord-embed-preview): Preview how a link embeds in Discord: site name, title, description, color bar, and large image vs. thumbnail. Fix missing tags in seconds.
- [WhatsApp Link Preview Checker](https://linkcard-tau.vercel.app/whatsapp-link-preview): Check how your link will look in WhatsApp. Find out why the preview image isn't showing (often the file is too large) and get the fixed tags.
- [Slack Link Preview Checker](https://linkcard-tau.vercel.app/slack-link-preview): See how Slack unfurls a URL from og:title, og:description, og:image, and Twitter Card tags. Find out why the card is missing or still showing the old version.
- [iMessage Link Preview Checker](https://linkcard-tau.vercel.app/imessage-link-preview): Check the Open Graph tags Messages uses for a rich link. Apple wants og:title, an image at least 900 pixels wide, and tags in the HTML the server sends.
- [Facebook Link Preview Checker](https://linkcard-tau.vercel.app/facebook-link-preview): See how a link looks when shared on Facebook. Check og:url, og:type, og:title, and og:image, then refresh a cached preview in Facebook's Sharing Debugger.
## Guides
- [Open Graph Image Size](https://linkcard-tau.vercel.app/og-image-size): Open Graph image sizes from platform docs: Facebook 1200×630 and 8 MB, X card limits, LinkedIn 1200×627, Apple 900px wide. Slack, Discord, and WhatsApp publish no pixel size.
- [Telegram Link Preview Checker](https://linkcard-tau.vercel.app/telegram-link-preview): How Telegram builds a link preview from og:title, og:description, and og:image, and how @WebpageBot refreshes a cached card. Telegram publishes no pixel size.
- [Reddit Link Preview Checker](https://linkcard-tau.vercel.app/reddit-link-preview): How a Reddit link post picks a suggested title and thumbnail from Open Graph tags, and the failures that leave the thumbnail blank. Reddit publishes no pixel size.
- [Next.js Open Graph](https://linkcard-tau.vercel.app/nextjs-open-graph): Add Open Graph and Twitter card tags in the Next.js App Router with the metadata API and an opengraph-image file, then test the HTML the server sends.
- [Refresh a Link Preview Cache](https://linkcard-tau.vercel.app/refresh-link-preview-cache): How to ask Facebook, LinkedIn, X, Slack, Discord, Telegram, and iMessage for a new link preview. Only some of them publish a refresh tool.
- [Bluesky Link Preview Checker](https://linkcard-tau.vercel.app/bluesky-link-preview): How a Bluesky link card is saved inside the post as an app.bsky.embed.external record, which Open Graph tags fill it, and how to debug a missing image with cardyb.
- [Mastodon Link Preview Checker](https://linkcard-tau.vercel.app/mastodon-link-preview): How Mastodon builds a link preview from oEmbed or Open Graph, why each server keeps its own card, and what leaves the image blank.
- [Microsoft Teams Link Preview Checker](https://linkcard-tau.vercel.app/microsoft-teams-link-preview): The tags Microsoft documents for a Teams website preview, why a pasted link stays a bare URL, and what the 30-minute app unfurl cache covers.
- [Fix a Broken Open Graph Preview](https://linkcard-tau.vercel.app/fix-broken-og-preview): A checklist for an Open Graph preview that is blank, wrong, or stuck on the old title and image: the HTML, the image request, blocked crawlers, and cached cards.
- [Instagram Link Preview Checker](https://linkcard-tau.vercel.app/instagram-link-preview): How a link shared on Instagram is fetched by FacebookExternalHit, which Open Graph tags supply the thumbnail, and how to check them. Meta publishes no Instagram pixel size.
- [Pinterest Link Preview Checker](https://linkcard-tau.vercel.app/pinterest-link-preview): How Pinterest rich Pins read article, recipe, and product markup, what Pinterestbot scrapes, and the Open Graph tags a pin page sends when the pin is shared.
- [TikTok Link Preview Checker](https://linkcard-tau.vercel.app/tiktok-link-preview): What a TikTok video page puts in og:title and og:image, what the oEmbed endpoint returns, and how to check a page you link from a TikTok profile.
- [YouTube Link Preview Checker](https://linkcard-tau.vercel.app/youtube-link-preview): The Open Graph tags on a YouTube watch page, how they differ from the oEmbed thumbnail, and how to check a video URL before you share it.
- [Threads Link Preview Checker](https://linkcard-tau.vercel.app/threads-link-preview): How a link on Threads relates to Meta's FacebookExternalHit crawler, which Open Graph tags a threads.com page sends, and how to check them. Meta publishes no Threads pixel size.
- [Snapchat Link Preview Checker](https://linkcard-tau.vercel.app/snapchat-link-preview): How Snapchat's URL Preview Service builds a chat card from og:title and og:image, the published user agent, and the 30-minute cache. Snap publishes no pixel size.
- [How to Add Open Graph Tags](https://linkcard-tau.vercel.app/how-to-add-open-graph-tags): Add og:title, og:description, og:image, and og:url in the HTML head: absolute https URLs, a 1200×630 image, and twitter:card. Free to check, no signup.
- [Open Graph Image Not Updating](https://linkcard-tau.vercel.app/og-image-not-updating): Why an og:image stays on the old picture after you replace the file. Facebook caches images by URL. How to refresh Facebook, X, Slack, LinkedIn, and Discord.
- [Discord Link Preview](https://linkcard-tau.vercel.app/discord-link-preview): How Discord builds a link preview from Open Graph and JSON oEmbed, why the embed is blank, and how to check the tags with Peekly. Free, no signup.
- [X (Twitter) Link Preview](https://linkcard-tau.vercel.app/x-twitter-link-preview): How an X link preview uses Twitter Cards and Open Graph: summary_large_image, the og: fallbacks, common mistakes, and how to validate the tags with Peekly.
- [WordPress Open Graph](https://linkcard-tau.vercel.app/wordpress-open-graph): Add and fix Open Graph tags in WordPress with a theme, Yoast SEO, or Rank Math, then verify the HTML Peekly fetches. Covers duplicate og:image tags.
- [Shopify Open Graph](https://linkcard-tau.vercel.app/shopify-open-graph): Open Graph and Twitter card tags on Shopify product and collection pages. Dawn's Liquid, page_image, common preview failures, and how to verify them with Peekly.
- [Astro Open Graph](https://linkcard-tau.vercel.app/astro-open-graph): Add Open Graph and Twitter card tags in Astro with a layout, Markdown frontmatter, and a head component. Set site so og:image is an absolute URL.
- [Nuxt Open Graph](https://linkcard-tau.vercel.app/nuxt-open-graph): Set Open Graph and Twitter card tags in Nuxt 3 with useSeoMeta or useHead. Use an absolute og:image, and keep SSR on so the tags are in the first HTML.
- [Remix Open Graph](https://linkcard-tau.vercel.app/remix-open-graph): Add Open Graph and Twitter card tags in Remix with the meta export. Render Meta in the root head, and merge parent tags so a child route keeps og:image.
- [SvelteKit Open Graph](https://linkcard-tau.vercel.app/sveltekit-open-graph): Add Open Graph and Twitter card tags in SvelteKit with svelte:head. They render into %sveltekit.head% during SSR. Adapters do not write the tags.
## Optional
- [Full text of the free checkers and guides](https://linkcard-tau.vercel.app/llms-full.txt): The same pages, including each guide's sections and copy-ready tags, in one document.
# Full guide text
# Peekly — Free Open Graph & link-preview checker
> Paste any URL to preview X, Discord, Slack, LinkedIn, Facebook, and WhatsApp. Pass/fail Open Graph checklist + copy-ready tags. Free, no signup.
Page: https://linkcard-tau.vercel.app/
## FAQ
### Is Peekly free?
Yes. Checking a single URL is free forever — no signup and no limit on one-off checks. Batch watching and monitoring may arrive later as a paid Pro plan; the free single-URL tool stays.
### Why does my link show no image when I share it?
Usually one of four things: there's no og:image tag, the image URL is relative instead of absolute, the image is behind a login, firewall or bot block, or the file is too big or in an unsupported format like SVG. Peekly checks all four and tells you which one it is.
### What size should my og:image be?
1200×630 pixels (a 1.91:1 ratio) as a PNG or JPG under about 300 KB. That size works for large cards on X, Facebook, LinkedIn, Discord, Slack and WhatsApp.
### Do I need twitter: tags if I already have Open Graph tags?
X reads og:title, og:description and og:image as fallbacks, but you still need twitter:card set to summary_large_image if you want the big image card. Without it, X shows a small thumbnail.
### I fixed my tags but the old preview still shows. Why?
Platforms cache link previews, sometimes for days. Facebook and LinkedIn let you force a refresh with their own debugging tools. On X, Slack and Discord the cache usually expires on its own, or you can add a query string such as ?v=2 to the URL.
### Do you store the pages I check?
No. We fetch the page once to read its
, show you the result, and don't save the page or the result. We only fetch public http(s) URLs, and private or internal addresses are blocked.
### Are the previews pixel-perfect?
They're close approximations of each platform's current card layout, built from the same tags the platforms read. Platforms change their designs from time to time, so treat them as a very good guide rather than a screenshot.
# Twitter Card Validator
> Free Twitter / X card validator. Paste a URL to preview your summary_large_image card, find missing twitter: tags, and copy a fixed meta block.
Page: https://linkcard-tau.vercel.app/twitter-card-validator
X removed the preview from its own card validator. Paste any URL to see your X card, find out why the image is missing, and copy the tags that fix it.
## What the twitter card validator checks
### summary vs. summary_large_image
Without twitter:card set to summary_large_image, X shows a small thumbnail. We show you which card you'll get.
### Fallback logic, explained
X falls back to og:title, og:description and og:image. We show which tag each part of the card actually comes from. How that fallback sits next to twitter:card is the [X (Twitter) Link Preview](https://linkcard-tau.vercel.app/x-twitter-link-preview) page.
### Image limits
Images under 300×157 or over 5 MB won't render. Use 1200×630 at a 1.91:1 ratio.
Tags covered: twitter:card, twitter:title, twitter:description, twitter:image, twitter:image:alt
# Open Graph Checker
> Free Open Graph checker. Test og:title, og:description and og:image, check image size and aspect ratio, and preview your link on Facebook, LinkedIn, Discord, Slack and WhatsApp.
Page: https://linkcard-tau.vercel.app/open-graph-checker
Test every og: tag on a page, check that og:image loads at the right size, and see the result on six platforms at once.
## What the open graph checker checks
### Every og: tag, graded
og:title, og:description, og:image, og:url, og:type and og:site_name, each marked pass, warning or fail with the reason.
### Real image check
We download your og:image like a crawler would and check that it loads, its dimensions, its aspect ratio and its file size.
### Tags to paste
A meta block that keeps the values already on the page. A missing title, description, or image stays as a comment, not a placeholder tag.
Tags covered: og:title, og:description, og:image, og:image:width, og:image:height, og:url, og:type, og:site_name
# LinkedIn Link Preview Checker
> See how your URL will look when shared on LinkedIn. Find out why the preview image or title is missing and copy the Open Graph tags that fix it.
Page: https://linkcard-tau.vercel.app/linkedin-link-preview
Check your LinkedIn card before you post, not after. See the image, title and domain LinkedIn will show, and fix what's missing.
## What the linkedin link preview checker checks
### Open Graph only
LinkedIn reads og: tags, not twitter: tags. If og:image is missing, your post has no image.
### 1.91:1 or it gets cropped
LinkedIn crops images to about 1.91:1. We flag images that will be cut off.
### Cache tip
LinkedIn caches previews. After you fix them, refresh the cache with LinkedIn's Post Inspector.
Tags covered: og:title, og:image, og:description, og:url
# Discord Embed Preview
> Preview how a link embeds in Discord: site name, title, description, color bar, and large image vs. thumbnail. Fix missing tags in seconds.
Page: https://linkcard-tau.vercel.app/discord-embed-preview
See your Discord embed before you post: the site name, the colored side bar, and whether you get a big image or a small thumbnail.
## What the discord embed preview checks
### Big image or thumbnail
Discord shows a large image only when twitter:card is summary_large_image. Otherwise you get a small thumbnail.
### Embed color
The side bar color comes from your theme-color meta tag.
### Site name
og:site_name appears above the title. Without it, the embed looks unbranded.
### How the tags are chosen
Discord fetches the URL and reads Open Graph first. JSON oEmbed only fills a gap, such as a missing title or image. That fetch, the failures, and the cache are the [Discord Link Preview](https://linkcard-tau.vercel.app/discord-link-preview) page.
Tags covered: og:site_name, og:title, og:description, og:image, theme-color, twitter:card
# WhatsApp Link Preview Checker
> Check how your link will look in WhatsApp. Find out why the preview image isn't showing (often the file is too large) and get the fixed tags.
Page: https://linkcard-tau.vercel.app/whatsapp-link-preview
WhatsApp previews break without any error. Find out whether it's the image size, a missing tag or a blocked crawler before you send the link.
## What the whatsapp link preview checker checks
### Keep images small
WhatsApp often skips large images. Aim for under 300 KB. We flag anything heavy.
### Absolute https URLs
Relative or http:// image URLs often don't render. We check both.
### Title and description
WhatsApp shows og:title and og:description under the image. We tell you if either is missing or too long.
Tags covered: og:title, og:description, og:image, og:url
# Slack Link Preview Checker
> See how Slack unfurls a URL from og:title, og:description, og:image, and Twitter Card tags. Find out why the card is missing or still showing the old version.
Page: https://linkcard-tau.vercel.app/slack-link-preview
Slack's classic unfurl is a crawl of the page you pasted. Check the title, description, and image before the link goes into a channel.
## What the slack link preview checker checks
### Open Graph, then Twitter tags
With no Slack app registered for the domain, Slack crawls the URL and reads Open Graph and X (Twitter) Card tags. The unfurl is built from og:title, og:description, og:image, and og:site_name. The same crawler looks for twitter:title, twitter:description, and twitter:image, so a page with only Twitter tags can still unfurl — set the og: tags anyway. This checker does not treat twitter:image as a stand-in for a missing og:image.
### Why the unfurl is blank
Slackbot-LinkExpanding fetches a byte range of the HTML and reads the meta tags in that slice, and it does not run JavaScript. Put the tags at the top of the document the server sends. og:image has to be an absolute URL the crawler can fetch; a path with no host produces no image. A login wall, or a firewall blocking that user agent, leaves nothing to unfurl. Slack does not consult robots.txt. A link whose label is the URL without the protocol is skipped on purpose.
### Stale cards
Slack caches the crawl for around 30 minutes, for the same URL, across the service. There is no public Slack debugger. Edit the tags, then share a URL Slack has not cached — add a query string such as ?v=2 — or wait for that cache to expire.
Tags covered: og:title, og:description, og:image, og:site_name, twitter:card, twitter:title, twitter:image
# iMessage Link Preview Checker
> Check the Open Graph tags Messages uses for a rich link. Apple wants og:title, an image at least 900 pixels wide, and tags in the HTML the server sends.
Page: https://linkcard-tau.vercel.app/imessage-link-preview
Messages on iPhone and Mac builds a rich link from Open Graph tags. Paste a URL to confirm those tags are in the HTML. The cards below are the other platforms that read the same tags — Peekly does not draw an iMessage bubble.
## What the imessage link preview checker checks
### What Messages reads
With no Open Graph tags, Messages shows a gray bubble: the page title, the domain, and a small icon. og:title and og:image are what turn that into a rich link. Keep the site name in og:site_name, not repeated in the title. Serve the same tags to every user agent. Apple documents og:description for the text of a social post, not as a required line on every page.
### Image size
Apple's guidance is an image at least 900 pixels wide. An image under 150 pixels wide may be ignored or shown as an icon. Also ship a square icon — an apple-touch-icon or a favicon — at least 108 pixels on a side. If the preview image is too small, Messages falls back to that icon. Prefer a graphic image; text inside the image gets hard to read when the bubble scales.
### Why the rich link fails
Link previews do not run JavaScript and do not follow a meta refresh. The tags have to be in the HTML response. Server redirects are followed. The HTML itself is limited to 1 MB, and the icon, image, and video together are limited to 10 MB. A page behind a login should still describe the real page — otherwise every share says Sign In. Apple does not publish a cache-busting tool for Messages.
Tags covered: og:title, og:image, og:site_name, og:description, apple-touch-icon
# Facebook Link Preview Checker
> See how a link looks when shared on Facebook. Check og:url, og:type, og:title, and og:image, then refresh a cached preview in Facebook's Sharing Debugger.
Page: https://linkcard-tau.vercel.app/facebook-link-preview
Facebook builds the share card from Open Graph tags. Check the image, title, and URL here. When the live share is stale, Facebook's Sharing Debugger is the official way to scrape it again.
## What the facebook link preview checker checks
### Tags Facebook uses
Set og:url to the undecorated canonical URL — likes and shares for that page add up there. Set og:title, og:description, and og:image. og:type defaults to website when you leave it out; set article (or another type) when that is what the page is. Add og:image:width and og:image:height so the image can render on the first share, before Facebook has finished downloading it.
### Image rules
The smallest image Facebook accepts is 200×200. Use at least 600×315 for the larger link post, and at least 1200×630 for high-resolution screens. Stay close to 1.91:1 or Feed crops the image. The file must not exceed 8 MB. Facebook's webmaster guide lists image/jpeg, image/gif, and image/png for og:image:type.
### Cache and the Sharing Debugger
Facebook caches the scrape, and it caches each image by its URL. A replaced image needs a new URL, and old shares do not update on their own. The official refresh tool is the Sharing Debugger on Meta's developer site: paste the URL, read the tags and errors it scraped, and the scrape updates what Facebook has stored. This checker shows the tags your server sends. It does not clear Facebook's cache.
Tags covered: og:url, og:type, og:title, og:description, og:image, og:image:width, og:image:height
# Open Graph Image Size
> Open Graph image sizes from platform docs: Facebook 1200×630 and 8 MB, X card limits, LinkedIn 1200×627, Apple 900px wide. Slack, Discord, and WhatsApp publish no pixel size.
Page: https://linkcard-tau.vercel.app/og-image-size
Design the image at 1200×630. That is Facebook's high-resolution size, and it is a 1.91:1 ratio. The notes below are the sizes each platform actually publishes. Paste a URL and this checker measures the og:image you shipped.
## Documented image sizes
### 1200×630 is the baseline
The Open Graph protocol defines og:image as a URL. It does not set a pixel size. Facebook's image guide is where 1200×630 comes from: use at least that size for high-resolution devices, and keep the ratio close to 1.91:1 (1200÷630). This checker fails an image under 200×200, warns under 1200×630, and warns when the ratio is more than about 10% off 1.91:1.
### Facebook and X
Facebook's minimum is 200×200. Use at least 600×315 for the larger link image, and 1200×630 when you can. The file must not exceed 8 MB. Documented og:image:type values are JPEG, GIF, and PNG. X's published card docs specify summary_large_image as a 2:1 image, at least 300×157, at most 4096×4096, under 5 MB. JPG, PNG, WEBP, and GIF are supported; SVG is not. summary is 1:1, at least 144×144, also under 5 MB, and is cropped to a square. A 1200×630 image is 1.91:1, so it is a little taller than that 2:1 ratio.
### LinkedIn and Messages
LinkedIn's sharing module asks for a minimum of 1200×627, a maximum of 5 MB, and a recommended ratio of 1.91:1. The same help page says an image under 401 pixels wide displays as a thumbnail. Required tags there are og:title, og:image, og:description, and og:url. Apple's Messages guidance asks for an image at least 900 pixels wide. Under 150 pixels wide, it may be ignored or shown as an icon. The HTML page is limited to 1 MB, and the icon, image, and video together are limited to 10 MB.
### Slack, Discord, and WhatsApp
Slack's unfurl documentation does not publish a pixel size or a file-size cap. Discord's link-preview guide uses 1200×630 in its example and allows png, gif, jpg, jpeg, webp, and avif. Its limits table has no minimum dimensions. WhatsApp's public help does not state a pixel size or a file-size cap for link previews. The warning in this checker above 600 KB, with a note to aim under 300 KB, is our threshold. It is not a number WhatsApp publishes.
Tags covered: og:image, og:image:width, og:image:height, og:image:type, twitter:image, twitter:card
# Telegram Link Preview Checker
> How Telegram builds a link preview from og:title, og:description, and og:image, and how @WebpageBot refreshes a cached card. Telegram publishes no pixel size.
Page: https://linkcard-tau.vercel.app/telegram-link-preview
Telegram's preview is a title, a short description, and an image, taken from the page when the link is fetched. Paste a URL to check those tags. The cards below are the other platforms that read the same tags — Peekly does not draw a Telegram bubble.
## How Telegram builds the preview
### Tags it reads
Telegram does not publish a tag list. The card that shows up has a site name, a title, a description, and media. Fill those with og:site_name, og:title, og:description, and og:image. Nothing in Telegram's docs says the crawler runs JavaScript, and a preview fails when those tags exist only after the page hydrates, so put them in the HTML the server returns. og:image has to be an absolute https URL the crawler can download; a path with no host produces no image. If you filter bots, allow a user agent containing TelegramBot, and confirm the token in your own logs. Telegram does not publish a webmaster guide.
### Image size
Telegram does not publish a pixel size or a file-size cap. A large preview and a small thumbnail are both real layouts. The Bot API can ask for one or the other on a message a bot sends, and no og: tag selects that. Use the same 1200×630 JPEG or PNG you use for the other large cards. A missing preview is usually a blocked fetch, a URL that is not an image, or a cached failure, not a published minimum size.
### Cache and @WebpageBot
Telegram caches the preview for a URL and does not publish how long that lasts. The refresh tool is @WebpageBot: open a chat with the bot and send the page URL. It fetches the page again and updates the cached preview. The bot has long accepted several URLs in one message; follow the limit it prints rather than a number from an old reply. A refresh is for the next share. A message already sent can keep the card it had. Adding ?v=2 creates a different URL, which is not a refresh of the original one.
Tags covered: og:site_name, og:title, og:description, og:image
# Reddit Link Preview Checker
> How a Reddit link post picks a suggested title and thumbnail from Open Graph tags, and the failures that leave the thumbnail blank. Reddit publishes no pixel size.
Page: https://linkcard-tau.vercel.app/reddit-link-preview
A link post gets a suggested title and, in most communities, a thumbnail, from the page Reddit fetches when you submit. Paste a URL to see those tags. Peekly does not draw a Reddit post.
## How Reddit picks the title and thumbnail
### Title and thumbnail
Reddit does not publish a current tag list. In the old public Reddit code, the suggested title preferred og:title and fell back to the document title, and the thumbnail preferred og:image, then og:image:url, then a link rel="image_src", then a large image in the page. That is still what a submit does in practice. Set og:title, og:description, and an absolute og:image, and do not rely on the fallback.
### Why the thumbnail is missing
The old public scraper parsed the HTML it was given and did not run JavaScript. Assume the current fetch works the same way: tags that appear only after hydration are invisible. A relative image URL, an image behind a login, or a bot challenge leaves nothing to thumbnail. If you filter crawlers, allow a user agent containing redditbot, and check your logs for the token Reddit actually sends. redditbot has historically honored robots.txt, so a disallow on the page is a likely reason the fetch never happens. Some communities turn thumbnails off in their settings, and no tag overrides that. Reddit does not publish a minimum image size. Ship 1200×630. A tiny image is a common reason a thumbnail is dropped, but there is no current number to check against.
### After the post exists
There is no Reddit debugger. The preview is chosen when the link is submitted, and editing the tags later does not rewrite that post. Fix the page, then submit again. A query string such as ?v=2 is a different URL, so it is fetched on its own.
Tags covered: og:title, og:description, og:image, og:image:url
# Open Graph tags in Next.js
> Add Open Graph and Twitter card tags in the Next.js App Router with the metadata API and an opengraph-image file, then test the HTML the server sends.
Page: https://linkcard-tau.vercel.app/nextjs-open-graph
The App Router writes the meta tags for you. Export a metadata object from a Server Component, and add an opengraph-image file when you want the image generated. Deploy it, then paste that public URL into the checker above.
## Add the tags
### The metadata object
Only a Server Component can export metadata. A file marked "use client" cannot. Set metadataBase once, in the root layout, to your absolute origin. Relative image and canonical paths are joined to it, and a relative path without metadataBase fails the build. An absolute URL in a field ignores metadataBase. title and description are the document title and the meta description. Repeat them on openGraph so the share card has its own title and description. Set twitter.card to summary_large_image, or X shows a small thumbnail. X will fall back to og:image, but the card type is what selects the large layout. When the title depends on the route, export generateMetadata instead of a static object. In Next.js 15, params on that function is a Promise, so await it before you read the slug.
```
import type { Metadata } from "next";
export const metadata: Metadata = {
title: "Post title",
description: "One or two sentences.",
openGraph: {
title: "Post title",
description: "One or two sentences.",
url: "/post",
images: [
{
url: "/og.png",
width: 1200,
height: 630,
},
],
},
twitter: {
card: "summary_large_image",
title: "Post title",
description: "One or two sentences.",
images: ["/og.png"],
},
};
```
### opengraph-image
Put opengraph-image.tsx, or a png, jpg, or gif of that name, in the route segment. Next.js serves the file and adds og:image, og:image:type, og:image:width, and og:image:height. Export alt and it adds og:image:alt. A file deeper in the tree replaces one above it. When twitter.images is unset, Next.js copies the Open Graph images onto the Twitter card, and if a Twitter image is present while twitter.card is unset it emits summary_large_image. Set the card in metadata anyway, so the choice sits in the file you maintain. Add a twitter-image file only when that image should differ. A static opengraph-image over 8 MB, or a twitter-image over 5 MB, fails the build. The code version uses ImageResponse from next/og. The JSX it accepts is flexbox; display:grid will not work. On a dynamic route the image function can read params. Next.js 15.5 passes that value as a plain object. Newer App Router docs type it as a Promise. Follow the types in the version you have installed.
```
import { ImageResponse } from "next/og";
export const alt = "Post title";
export const size = { width: 1200, height: 630 };
export const contentType = "image/png";
export default function Image() {
return new ImageResponse(
(
Post title
),
{ ...size },
);
}
```
### What a crawler receives
On a static page the tags are in the first HTML response. On a dynamic page Next.js can stream metadata after the UI, except for crawlers on its htmlLimitedBots list, which includes Twitterbot and Slackbot. Those still get the tags in the initial HTML. The checker above sends a user agent that includes Twitterbot, so a Next.js page returns the tags in that first response. A WordPress theme and a Shopify theme have the same requirement: the tags have to be in the HTML the server sends. Those steps are the [WordPress Open Graph](https://linkcard-tau.vercel.app/wordpress-open-graph) and [Shopify Open Graph](https://linkcard-tau.vercel.app/shopify-open-graph) pages. Astro, Nuxt, Remix, and SvelteKit have that same requirement. Those steps are the [Astro Open Graph](https://linkcard-tau.vercel.app/astro-open-graph), [Nuxt Open Graph](https://linkcard-tau.vercel.app/nuxt-open-graph), [Remix Open Graph](https://linkcard-tau.vercel.app/remix-open-graph), and [SvelteKit Open Graph](https://linkcard-tau.vercel.app/sveltekit-open-graph) pages. Paste the public URL, not a localhost address. The checker only fetches public pages, and it grades og:title, og:description, og:image, and the Twitter card from the HTML your server sends.
Tags covered: og:title, og:description, og:image, og:url, twitter:card, twitter:image
# Refresh a link preview cache
> How to ask Facebook, LinkedIn, X, Slack, Discord, Telegram, and iMessage for a new link preview. Only some of them publish a refresh tool.
Page: https://linkcard-tau.vercel.app/refresh-link-preview-cache
Fixing the tags does not update a card a platform already stored. A few of them publish a tool that fetches the URL again. The rest make you wait, or share a URL they have not seen. Check the tags with the tool above, then refresh the platform that is still showing the old card.
## What actually refreshes
### Facebook
The official tool is the Sharing Debugger at developers.facebook.com/tools/debug. You need to be logged in. Paste the URL and scrape again. That scrape updates the preview Facebook has stored for that URL. Facebook also caches each image by the image URL, so a replaced file at the same address can stay stale — point og:image at a new URL when the picture itself changed. Posts already shared do not rewrite themselves. This checker shows the tags your server sends. It does not clear Facebook's cache.
### LinkedIn
LinkedIn's tool is Post Inspector at linkedin.com/post-inspector. You need to be logged in. Enter the URL and inspect it. LinkedIn's help says that refresh applies to new posts, messages, and articles that include the URL. Anything already published keeps the preview it had.
### X
X does not publish a scrape-again tool. The old Card Validator no longer shows a preview, and X does not say how long a card stays cached. A query string such as ?v=2 is a different URL, so it is fetched on its own. The original URL updates when X fetches it again. The [X (Twitter) Link Preview](https://linkcard-tau.vercel.app/x-twitter-link-preview) page is the card that fetch returns.
### Slack
Slack does not publish a debugger for a classic unfurl. It caches the crawl for around 30 minutes, for the same URL, across the service. Share a URL Slack has not cached — add a query string such as ?v=2 — or wait for that cache to expire. A message already posted keeps the unfurl it got.
### Discord
Discord's link-preview docs say a preview is cached for about 30 minutes, and resharing the same URL in that window shows the old card. The way they document for seeing a change immediately is a new query string, such as ?v=2. The Embed Debugger at discord.com/developers/embeds shows the tags Discord read and the layout it chose. An embed already posted in a message stays as it was. The [Discord Link Preview](https://linkcard-tau.vercel.app/discord-link-preview) page is the unfurl those tags come from.
### Telegram
Send the page URL to @WebpageBot. The bot fetches the page again and updates the cached preview for that URL. Telegram does not publish how long a preview lives. A message already sent can keep its old card, so share the link again after the bot confirms the update. A query string is a different URL, not a refresh of the original one.
### iMessage
Apple does not publish a cache-busting tool for Messages. A rich link is built from the Open Graph tags in the HTML, and a preview already shown on a device can stick. There is no official way to push a new card into a conversation that already has one. A new URL is a new fetch. Confirm the tags with the checker above before you send it.
Tags covered: og:title, og:description, og:image, og:image:url, twitter:card
# Bluesky Link Preview Checker
> How a Bluesky link card is saved inside the post as an app.bsky.embed.external record, which Open Graph tags fill it, and how to debug a missing image with cardyb.
Page: https://linkcard-tau.vercel.app/bluesky-link-preview
Bluesky copies the card into the post when the post is written. Paste a URL to check the Open Graph tags that copy is made from. The cards below are the other platforms that read the same tags — Peekly does not draw a Bluesky post.
## How a Bluesky link card works
### The card is part of the post
The AT Protocol type is app.bsky.embed.external. The record stores the page URI, a title, a description, and an optional thumb. The thumb is a blob on the author's personal data server. It is not a live link back to og:image. Bluesky's post guide says each client fetches and embeds that card, so every reader sees the same preview and the website is not fetched again every time the post is viewed. The official app does the fetch through cardyb: https://cardyb.bsky.app/v1/extract?url= plus the page URL. The record has one card shape. There is no summary versus summary_large_image field, so twitter:card does not pick a different Bluesky layout.
### Tags and the image
The website-card example in that guide reads og:title, og:description, and og:image from the HTML, then uploads the image. The lexicon caps the thumb blob at 1,000,000 bytes and accepts image/*. Bluesky does not publish a pixel size. A 1200×630 JPEG or PNG is the large-card size used everywhere else, and it stays under that byte cap if you keep the file lean. Nothing in the guide says the fetcher runs JavaScript. Put the tags in the HTML the server returns. og:image should be an absolute https URL. A missing image Content-Type is a reported reason cardyb answers "Unable to serve image from URL". Bluesky does not publish a webmaster user agent. On the public issue tracker, the crawler's default agent was given as Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Bluesky Cardyb/1.1; +mailto:support@bsky.app) Chrome/W.X.Y.Z Safari/537.36, with a note to keep it stable. If you only serve tags to known bots, allow a user agent containing Bluesky Cardyb.
```
```
### Debug it, then post again
Request https://cardyb.bsky.app/v1/extract?url= and the page URL. The JSON is the title, description, and image cardyb found. When image points at cardyb's /v1/image proxy, open that URL. An error string there means the image fetch failed. There is no Bluesky tool that rewrites a post already published. The card is part of the record. Change the tags, confirm cardyb, and post the link again. A query string such as ?v=2 is a different URI, so it is a new card. It leaves the original post as it was. This checker shows the tags your server sends. It does not draw the Bluesky card and it does not edit a post.
Tags covered: og:title, og:description, og:image, twitter:card
# Mastodon Link Preview Checker
> How Mastodon builds a link preview from oEmbed or Open Graph, why each server keeps its own card, and what leaves the image blank.
Page: https://linkcard-tau.vercel.app/mastodon-link-preview
The Mastodon server that sees a post fetches the first link and stores a preview card of its own. Paste a URL to check the Open Graph tags that card is built from. The cards below are the other platforms that read the same tags — Peekly does not draw a Mastodon post.
## How Mastodon builds the preview
### oEmbed, then Open Graph
In the current Mastodon source, the preview-card fetch tries oEmbed first. A link, photo, or video oEmbed response becomes the card. A rich oEmbed response is rejected, and the Open Graph path runs instead. With no oEmbed card, the title is a NewsArticle or WebPage JSON-LD headline, then og:title, then the document title. The description follows the same order: that JSON-LD description, then og:description, then the meta description. A headline that disagrees with og:title is what the card will show. The image is og:image only. twitter:image is not read. A relative og:image is resolved against the page URL. Only the first link in the post is fetched, and a post that already has media or a quote is skipped. The request asks for text/html and sends a user agent that ends in Bot: Mastodon/ (http.rb/; +https:///) Bot. The host in the agent is the instance doing the fetch. There is no single Mastodon crawler to allow. The response has to be HTTP 200 and text/html. Mastodon parses that HTML with Nokogiri. It does not run JavaScript.
### Each server has its own card
The card is a row on the server that processed the post, keyed by the final URL after redirects. A same-host canonical link or og:url replaces that key. A canonical on another host is ignored, so a tag pointing at a different site does not move the card. The fetch service reuses a card that is less than two weeks old. It fetches again when there is no row, when the row is older than that, or when the row has no image file. A card that saved the old image keeps it for the two weeks. A card that never saved an image can recover on the next post. Every other Mastodon server has its own table. A boost does not update a card another server already stored. Misskey, GoToSocial, and the rest of the Fediverse fetch with their own code. Mastodon does not publish a debugger. An admin of one server can drop local thumbnails with tootctl preview_cards remove. That command's description says media from the last 14 days will not be fetched again until the link is posted two weeks after the last usage. A query string such as ?v=2 is a different URL, and a new card, on every server that sees it.
### Why the image is missing
Preview-card images are JPEG, PNG, GIF, or WebP, under 8 MB. Anything else fails validation, the image is dropped, and the title and description are saved anyway. Mastodon then stores a thumbnail capped at 230,400 pixels, about 640×360, and converts a GIF to JPEG. There is no published minimum size. Ship the same 1200×630 image you use elsewhere. A login wall, a bot challenge, or a filter that blocks a user agent containing Mastodon leaves that server with nothing to parse. og:image:alt is kept as the image description. fediverse:creator attributes an account. It does not fill in a missing title or image.
Tags covered: og:title, og:description, og:image, og:image:alt, og:url, og:site_name
# Microsoft Teams Link Preview Checker
> The tags Microsoft documents for a Teams website preview, why a pasted link stays a bare URL, and what the 30-minute app unfurl cache covers.
Page: https://linkcard-tau.vercel.app/microsoft-teams-link-preview
Teams builds a card from the page when the link is shared. Paste a URL to check the title, description, and image that card is allowed to use. The cards below are the other platforms that read the same tags — Peekly does not draw a Teams message.
## How Teams unfurls a link
### The tags Microsoft documents
The website-preview guide on Microsoft Learn says a preview needs a thumbnail, or both a title and a description. All three is what they recommend. Title is meta name="title" or og:title. Description is meta name="description" or og:description. The thumbnail has no plain-HTML version. It is og:image, and Microsoft's example is an absolute URL. The guide does not publish a pixel size, a file-size cap, or a format list. Use the same 1200×630 JPEG or PNG you use for the other large cards. A page can also add schema.org JSON-LD. Teams documents micro-capability templates that turn a type such as Article into a richer Adaptive Card, with no Teams app installed. That path is separate from the three tags above. Keep the JSON-LD in the HTML the server sends.
```
```
### When the card is skipped
The same guide says a URL that requires authentication can still be shared, and the preview is not created. A messaging policy can turn URL previews off for a whole organization. The Teams admin docs call that setting URL previews. No tag overrides it. Nothing in the website-preview guide says the crawler runs JavaScript. Tags that exist only after the page hydrates are a common reason the card is empty. Microsoft does not publish a crawler user agent for this preview. People inspecting requests have reported an agent containing SkypeUriPreview. If you filter bots, look in your own logs for the token that actually arrives. In one public report, a page with different twitter:, og:, and document-title values showed the twitter: title, description, and image in Teams. With those twitter: names misspelled, the card showed the document title and the meta description, not the og: values. Microsoft support did not confirm an order. Set the og: text, the meta description, meta name="title", and the twitter: text to the same words, and point twitter:image and og:image at the same file.
### App unfurling is a second path
A Teams app can register a domain and answer composeExtension/queryLink with its own card. That runs only where the app is installed. It does not replace the website tags for everyone else. Microsoft documents that this unfurl result is cached for 30 minutes. An app can send a setCachePolicy action of no-cache so Teams does not keep that app's card. The website-preview guide does not publish a separate TTL, and it does not publish a debugger. A message already sent keeps the card it got. A query string such as ?v=2 is a different URL. This checker shows the tags your server sends. It does not clear a Teams cache.
Tags covered: og:title, og:description, og:image, twitter:title, twitter:description, twitter:image
# Fix a broken Open Graph preview
> A checklist for an Open Graph preview that is blank, wrong, or stuck on the old title and image: the HTML, the image request, blocked crawlers, and cached cards.
Page: https://linkcard-tau.vercel.app/fix-broken-og-preview
A stale or empty card comes from the HTML the crawler received, the image request, or a preview the platform already stored. Work the list in order. Paste the public URL above. If this checker and the platform disagree, the page is fine and the platform is serving a stored card.
## Checklist
### Read the HTML the server sends
View the page source, or curl the URL, and read the bytes of the response. A tag that appears only after JavaScript runs is invisible to a crawler that does not execute it. You want og:title, og:description, and og:image in that first response. og:image has to be an absolute https URL. A path with no host is the usual reason the image slot is empty. og:url should be the canonical URL of this page. On Facebook, likes and shares add up on og:url, so a wrong one attaches a different card. On Mastodon, a same-host og:url is the key the card is stored under. If the title in the card is your site name, or a template such as "Loading", the tag is present and the value is wrong. If this checker still shows the old title, the HTML being fetched is the old HTML: a CDN, a cached render, or a tag that never made it into the response.
### Open the image URL on its own
The og:image URL should return an image, with a Content-Type such as image/jpeg or image/png, and no login page in front of it. SVG is a miss where a platform publishes a format list. Facebook's guide lists JPEG, GIF, and PNG. X's card docs list JPG, PNG, WEBP, and GIF, and not SVG. The size that satisfies the published large-card rules is 1200×630. That is Facebook's high-resolution size, at about 1.91:1, and the file must not exceed 8 MB. X's summary_large_image cap is 5 MB. The Open Graph Image Size page has the rest of the published numbers. This checker downloads the image and reports the dimensions, the type, and whether the file loaded. A missing Content-Type is also a reported reason a Bluesky card loses its image. The Bluesky Link Preview Checker page covers that fetch.
### See if the crawler was blocked
A 401, a 403, a bot challenge, or a firewall rule leaves the platform with no tags. Some sites only emit Open Graph tags for a user agent they recognize. This checker sends a user agent that includes Twitterbot. That is enough for many of those pages, including a Next.js page on the htmlLimitedBots list. The Next.js Open Graph page explains that case. It is not the agent Bluesky, Mastodon, or Teams sends. If this checker looks right and one platform is still blank, fetch the URL with that platform's agent and read the HTML. The Bluesky, Mastodon, Slack, and Microsoft Teams guides name the agents that are published or that those projects have described. Private and localhost URLs cannot be checked from here.
### Decide if the card is cached
Editing the tags updates the next fetch. It does not rewrite a card a platform already saved, and it does not rewrite a message or post already sent. The Refresh a Link Preview Cache page lists the tool each platform actually documents. Facebook's is the Sharing Debugger. LinkedIn's is Post Inspector. Telegram's is @WebpageBot. A query string such as ?v=2 is a different URL. Use it to prove the new tags. The original URL still shows the stored card until that platform fetches it again. Bluesky stores the card inside the post, so a new post is the update. Mastodon keeps a successful card on each server for about two weeks. Teams documents a 30-minute cache for an app's link unfurl, and no debugger for the ordinary website preview.
Tags covered: og:title, og:description, og:image, og:url, og:image:width, og:image:height, twitter:card
# Instagram Link Preview Checker
> How a link shared on Instagram is fetched by FacebookExternalHit, which Open Graph tags supply the thumbnail, and how to check them. Meta publishes no Instagram pixel size.
Page: https://linkcard-tau.vercel.app/instagram-link-preview
Meta fetches a link shared on Instagram with FacebookExternalHit and stores a title, a description, and a thumbnail. Paste a URL to check those Open Graph tags. The cards below are the other platforms that read the same tags — Peekly does not draw an Instagram story, profile, or DM.
## How Instagram gets the preview
### The crawler Meta documents
Meta's web-crawler page, updated May 21, 2026, says FacebookExternalHit crawls an app or website shared on Meta's family of apps, and it names Facebook, Instagram, and Messenger. The link may have been copied and pasted, or shared with the Facebook social plugin. The crawler gathers, caches, and displays a title, a description, and a thumbnail. The user-agent strings on that page are facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php) and facebookexternalhit/1.1. meta-externalagent, meta-webindexer, and meta-externalads are listed as different crawlers, for AI indexing and ads. A robots.txt block on those names is not a block on the share crawler. FacebookExternalHit may bypass robots.txt when it is checking for malware. The same page says the server must support gzip and deflate, the Open Graph properties have to appear in the first 1 MB or they are cut off, and the response has to come back within a few seconds. The crawler sends a Range header. Their own example is bytes=0-524288. The site should return the tags inside that range, or ignore Range and return the whole head. There is no second Instagram crawler on the page.
### Tags and the image
Meta does not publish an Instagram tag list or an Instagram pixel size. The fields that crawler stores are a title, a description, and a thumbnail, which are og:title, og:description, and og:image. og:url should be the canonical URL of the page. Add og:image:width and og:image:height so the image can render on the first share, before the file has been measured. The image rules Facebook publishes for this same crawl — at least 200×200, 1200×630 for the large card, under 8 MB, JPEG, GIF, or PNG — are on the Facebook Link Preview Checker page. Use that size. A path with no host, an http:// image, or a file behind a login leaves the thumbnail empty. Nothing on the crawler page says the fetch runs JavaScript. Put the tags in the HTML the server sends. A profile link page is a different surface: Meta's help for that page says you type the URL and a title, and an eligible account can add an image. That title is the one you entered. It is not documented as a read of og:title.
```
```
### An instagram.com URL
The tags above are for a page you publish. An Instagram post URL is a page Instagram publishes, and Instagram does not document its Open Graph markup. A request for a public /p/ URL can come back as the logged-out app shell: the document title is Instagram, and the head contains no og: tags. That is the HTML returned to facebookexternalhit, Twitterbot, Googlebot, and Slackbot for a public post. A platform that only receives that shell has no caption and no image to show. Paste the post URL here if you need to see which response this fetch got. The URL you can fix is the page you link out to.
### Refresh it
Meta's crawler page says a failed or empty crawl can be repeated in the Sharing Debugger, or with the Sharing API. That is the same debugger the Facebook guide describes, at developers.facebook.com/tools/debug. You need to be logged in. Scraping again updates what Meta has stored for that URL, which is the cache FacebookExternalHit uses when the link is shared on Instagram. This checker shows the tags your server sends. It does not send Meta's Range header, and it does not clear that cache. A query string such as ?v=2 is a different URL. A story or message that already has a card keeps the one it stored.
Tags covered: og:title, og:description, og:image, og:url, og:image:width, og:image:height
# Pinterest Link Preview Checker
> How Pinterest rich Pins read article, recipe, and product markup, what Pinterestbot scrapes, and the Open Graph tags a pin page sends when the pin is shared.
Page: https://linkcard-tau.vercel.app/pinterest-link-preview
A rich Pin copies title, price, or recipe fields from the page behind it. Paste your URL to check the Open Graph tags that article and product Pins require. The cards below are the other platforms that read the same tags — Peekly does not draw a Pin.
## How a rich Pin is filled in
### Article, recipe, then product
Pinterest's rich Pin docs describe three types. Article Pins add a headline, a description, and an author. Recipe Pins add a title, ingredients, cook time, yield, and ratings. Product Pins add price, availability, and the product name. If a page is marked up as more than one type, the developer docs rank them product, then recipe, then article. The business help says an article is a page of text, such as a news story or a blog post, and that a listicle or a page of images with little text is not an article. Article Open Graph requires og:type set to article or blog, plus og:title and og:description. og:site_name, og:url (or a canonical link), and og:image are optional, and you can publish up to six og:image tags. article:published_time and article:author are optional. Recipe markup is Schema.org Recipe or h-recipe, not an og:type. Schema.org requires name and ingredients, with each ingredient in its own tag. h-recipe requires p-name and p-ingredient. Ratings are Schema.org only, and the help says they show on iOS and Android. Product Open Graph requires og:type set to product or og:product, og:title, product:price:amount with no currency symbol, and product:price:currency as an ISO 4217 code. og:description and og:image are optional. og:availability accepts instock, preorder, backorder (or pending), out of stock, and discontinued. The business help says a product Pin only shows that data when the product is in stock, the price is current, and the site meets Pinterest's merchant guidelines. The product has to be buyable on your site. Etsy, Teachers Pay Teachers, and eBay are called out as hosts that need no markup of their own. Schema.org is the other accepted format for articles and products. If you use it, still set og:site_name, because Schema.org has no site-name property.
```
```
### The picture and the metadata are different
The image in the feed is the image that was saved as the Pin. Rich Pin metadata is the extra text above and below that image. The rich Pin docs call og:image optional and say only that it should be high resolution. They do not publish a pixel size for it. Pinterest's Pin specs, which cover the file you upload, allow BMP, JPEG, PNG, TIFF, and WEBP, with a 20 MB maximum on the web, a title of up to 100 characters, and a description of up to 800. The ad specs recommend a 2:3 image, 1000×1500, and say a taller image can be cropped in the feed. That ratio is for the Pin image people see while scrolling. It is not a requirement the rich Pin docs attach to og:image. A 1200×630 Open Graph image still matters for every other platform, and this checker measures that file. It will not look like a full-bleed Pin. To stop rich data on one page, add meta name="pinterest-rich-pin" content="false". That tag leaves ordinary saves alone. meta name="pinterest" content="nopin" is the other tag: it blocks saving from the page, and Pinterest's help shows a default message when someone tries. nopin="nopin" on an img blocks that one image. The two tags do different jobs.
### Pinterestbot
Pinterest's help describes Pinterestbot as the crawler that indexes public pages and scrapes the page behind an existing Pin so the title, description, price, and availability stay current. It also drops Pins whose links are broken. The published user agents are Pinterest/0.2 (+https://www.pinterest.com/bot.html), Mozilla/5.0 (compatible; Pinterestbot/1.0; +https://www.pinterest.com/bot.html), and a longer mobile string that also contains Pinterestbot/1.0. It honors robots.txt on the main domain. Pinterest says it does not read a robots.txt on a subdomain. Crawl-delay is honored up to 1 second, and a larger value is treated as 1. A Disallow of / stops the crawl of the whole site, which also stops rich data from being refreshed. Pinterest says not to hard-code its IP range, because the addresses change, and to verify a suspicious client with a reverse DNS lookup that ends in pinterest.com or pinterestcrawler.com. The business help says pages with the correct tags become rich Pins when a new Pin is created, and that existing Pins pointing at those pages pick up the data too. Allow up to 24 hours. A manual edit of an article or recipe Pin overwrites the synced fields. The developer overview still mentions applying for rich Pins. The current business help does not describe an application form and does not link a validator. Save a Pin and look for the extra fields, or read the tags with the checker above. This checker sends its own user agent. It does not impersonate Pinterestbot, and it does not grade product:price:amount. Read that tag in the page source.
### When the pin URL is what gets shared
A public pin page on pinterest.com sends its own Open Graph tags for every other app. On a live pin those were og:site_name Pinterest, og:title, og:description, og:type pinterestapp:pin, og:url, and og:image pointing at i.pinimg.com, with og:image:width and og:image:height. Twitter title, description, and image tags repeated the same text and file. You do not edit those tags. The title and description are the Pin's, and the image is the file Pinterest stored. Paste the pin URL here to see the card other platforms will build from that HTML. Paste your own page when the question is what Pinterestbot can scrape.
Tags covered: og:type, og:title, og:description, og:image, og:site_name, og:url, product:price:amount, product:price:currency
# TikTok Link Preview Checker
> What a TikTok video page puts in og:title and og:image, what the oEmbed endpoint returns, and how to check a page you link from a TikTok profile.
Page: https://linkcard-tau.vercel.app/tiktok-link-preview
A TikTok video URL carries a generated share image and a short title. Paste that URL, or the page you link from TikTok, to read the tags. The cards below are the other platforms that read the same tags — Peekly does not draw the TikTok app.
## How a TikTok share card is built
### The tags on a video page
TikTok does not publish a webmaster guide for link previews. A public video page does send Open Graph tags in the HTML, and they are not the caption. On https://www.tiktok.com/@scout2015/video/6718335390845095173 the document title and og:title were both "TikTok · Scout, Suki & Stella". There was no og:description. og:type was website, og:site_name was TikTok, and og:url was that full video URL. og:image was an absolute URL on tiktokcdn-us.com whose path included the size token tplv-photomode-video-share-card:1200:630. twitter:card was summary_large_image and twitter:image repeated the same file, both written as property attributes rather than name. The caption people see inside the app was not in those tags. A share card built from this HTML is the creator's name and a 1200×630 image. Changing the cover in TikTok is how that image changes. There is no og:image you can author on tiktok.com.
### oEmbed, and the signed image
TikTok's embed docs describe GET https://www.tiktok.com/oembed?url= plus a video URL. The response follows the oEmbed spec. For a video object the required fields are html, width, and height. Title, author, and thumbnail_url are optional. Fetches of public video URLs came back without them: type video, a player iframe, provider_name TikTok, width 325, height 578, and an embed_product_id. An embed uses that iframe. A link preview that hoped oEmbed would supply the thumbnail has to read og:image from the page instead. That image URL is signed. The one on the page above carried x-expires and a signature, so it is not a permanent file. A platform that saved the image URL and fetched it after the expiry gets nothing, even though a fresh fetch of the video page returns a new signature. Paste the video URL here to see the title and image URL TikTok is serving right now. This checker downloads the image and reports whether that URL still loads.
```
https://www.tiktok.com/oembed?url=https://www.tiktok.com/@scout2015/video/6718335390845095173
```
### A page you link from TikTok
TikTok does not publish a crawler, a tag list, or a pixel size for a website saved on a profile. The website field is a URL and a label you type. The Open Graph tags on that URL matter when someone copies it into an app that unfurls links, and when you want the page itself to be ready. Put og:title, og:description, and an absolute https og:image in the HTML the server sends. A tag that appears only after JavaScript runs is invisible to a crawler that does not execute it. 1200×630 is the large-card size this checker measures, from Facebook's published image guide. TikTok does not publish that number for inbound links. tiktok.com's own robots.txt disallows Bytespider for the whole site, along with a list of other bots, and the general rules disallow /link. Bytespider is not documented as the share-card fetcher. Blocking it on your site, or allowing it, is not a switch for previews of your pages. TikTok does not publish a debugger. A query string such as ?v=2 is a different URL.
```
```
### Short links
The oEmbed docs and the tags above use the full video URL, tiktok.com/@user/video/id. TikTok also hands out short links on vm.tiktok.com and vt.tiktok.com. Those hosts redirect to a video page when the code is valid. A crawler that stops on the short URL never sees the video's title or image. An unrecognized short code redirects to the TikTok homepage, whose card is not the video. Paste the full URL when you can. This checker follows up to five redirects and then reads the page it lands on. There is no TikTok tool that rewrites a card another platform already stored. The Refresh a Link Preview Cache page lists the tool each of those platforms actually documents.
Tags covered: og:title, og:image, og:url, og:site_name, og:type, twitter:card, twitter:image
# YouTube Link Preview Checker
> The Open Graph tags on a YouTube watch page, how they differ from the oEmbed thumbnail, and how to check a video URL before you share it.
Page: https://linkcard-tau.vercel.app/youtube-link-preview
A YouTube watch page already has a title, a description, and a thumbnail in Open Graph. Paste the video URL to read them. The cards below are the other platforms that read the same tags — Peekly does not draw a YouTube player.
## How a YouTube share card is built
### Tags on the watch page
YouTube does not publish a webmaster guide for these tags. A public watch page does include them in the HTML, for an ordinary browser and for a crawler. On https://www.youtube.com/watch?v=dQw4w9WgXcQ they were og:site_name YouTube, og:url set to that watch URL, og:title set to the video title, and og:description set to a shortened description. og:image was https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg with og:image:width 1280 and og:image:height 720, a 16:9 frame. og:type was video.other. twitter:card was summary_large_image, twitter:site was @youtube, and twitter:image repeated the same file. twitter:player pointed at the embed URL, and so did og:video:url and og:video:secure_url, with og:video:type text/html and a declared size of 1280×720. The card type YouTube chose is the large image, so a consumer that honors twitter:card shows the thumbnail rather than a player. The thumbnail itself is chosen in YouTube Studio. There is no meta tag on youtube.com for you to edit.
```
```
### oEmbed uses a smaller thumbnail
YouTube's oEmbed endpoint answers any client: GET https://www.youtube.com/oembed?url= plus the watch URL, and format=json. For the same video the JSON type was video, with title, author_name, author_url, and provider_name YouTube. thumbnail_url was https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg at 480×360. The html field is an iframe aimed at youtube.com/embed/. There is no description field. A preview built from oEmbed and a preview built from og:image are different pictures: 480×360 against 1280×720. YouTube does not publish a promise that maxresdefault.jpg exists for every video. When that file is missing, a client that guessed the filename has a broken image, and the oEmbed thumbnail is the file the oEmbed response actually named. Paste the watch URL here. This checker reads og:image from the page and downloads it, which is the larger file when YouTube emitted one.
### The video tag is an embed page
og:video on that watch page is the embed document, and og:video:type is text/html. It is not a video file. Discord's link-preview docs play a video only for video/mp4, video/webm, and video/quicktime, and they require og:image as the preview frame. A YouTube link in Discord keeps the image card. The same is true anywhere else that will only attach a file it can play. oEmbed's html iframe is how a site embeds the player on purpose. A share card does not run that iframe. If the card you want is a custom title and a custom image, publish those on a page you control and link the watch URL from the page. The Open Graph tags on youtube.com stay YouTube's.
### Short URLs, and a stale card
youtu.be/VIDEO_ID responds with a redirect to youtube.com/watch?v=VIDEO_ID&feature=youtu.be. A crawler that follows the redirect reads the watch page, and the og:url on that page is the watch URL without the short host. This checker follows up to five redirects, then grades the page it lands on. YouTube does not publish a scrape-again tool. Editing the title or the thumbnail updates the next fetch of the watch page. A post that already stored the card keeps it. The Refresh a Link Preview Cache page lists the debugger each other platform documents. Facebook's is the Sharing Debugger, and it is the one that refetches a YouTube URL for Facebook. A query string on the watch URL is a different URL.
Tags covered: og:title, og:description, og:image, og:type, og:video, og:video:type, twitter:card, twitter:image, twitter:player
# Threads Link Preview Checker
> How a link on Threads relates to Meta's FacebookExternalHit crawler, which Open Graph tags a threads.com page sends, and how to check them. Meta publishes no Threads pixel size.
Page: https://linkcard-tau.vercel.app/threads-link-preview
Threads is a Meta app, and Meta does not publish a separate crawler for it. Paste a URL to check the Open Graph tags FacebookExternalHit is documented to read. The cards below are the other platforms that read the same tags — Peekly does not draw a Threads post.
## How a Threads preview is filled in
### Tags to put on your page
Meta does not publish a Threads tag list or a Threads pixel size. FacebookExternalHit, the crawler Meta documents for a link shared on its apps, stores a title, a description, and a thumbnail. Those are og:title, og:description, and og:image. og:url should be the canonical URL of the page. Add og:image:width and og:image:height so the image can render on the first share, before the file has been measured. The image rules Facebook publishes for this crawl — at least 200×200, 1200×630 for the large card, under 8 MB, JPEG, GIF, or PNG — are on the Facebook Link Preview Checker page. Use that size. A path with no host, an http:// image, or a file behind a login leaves the thumbnail empty. Nothing on Meta's crawler page says the fetch runs JavaScript. Put the tags in the HTML the server sends. A third-party size table that names Threads is not a spec Meta publishes.
```
```
### What Meta documents
Meta's web-crawler page says FacebookExternalHit crawls an app or website shared on Meta's family of apps, and the examples it names are Facebook, Instagram, and Messenger. It does not name Threads. The user-agent strings on that page are facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php) and facebookexternalhit/1.1. meta-externalagent, meta-webindexer, and meta-externalads are different crawlers. A robots.txt block on those names is not a block on the share crawler, and FacebookExternalHit may bypass robots.txt when it is checking for malware. The same page says the server must support gzip and deflate, Open Graph properties have to appear in the first 1 MB, and the response has to come back within a few seconds. The crawler sends a Range header. Their example is bytes=0-524288. There is no second Threads crawler on the page. The Instagram Link Preview Checker page quotes that crawler in full, because Instagram is one of the apps Meta names.
### A threads.com URL
The tags above are for a page you publish. A Threads profile is a page Threads publishes. On https://www.threads.com/@zuck, fetched with facebookexternalhit, og:site_name was Threads. og:title was the display name, the @handle, and the words Threads, Say more. og:description was follower and thread counts plus the bio. og:url was https://www.threads.com/@zuck. og:type was listed twice, profile and then article. The Open Graph protocol gives the first tag preference when they conflict. og:image was an absolute URL on cdninstagram.com whose path included the size token stp=dst-jpg_s640x640. There were no og:image:width or og:image:height tags. twitter:card was summary, so a consumer that honors that card shows a small thumbnail, and twitter:image repeated the same file. The image URL carried signature query parameters. It is not a filename you can hard-code. A request for https://www.threads.net/@zuck came back as HTTP 200, not a redirect, and its og:url was still the threads.com profile. On Facebook, likes and shares add up on og:url, so that is the URL the stored card is keyed to. You do not edit these tags. Paste the Threads URL here to see the card other platforms will build. Paste your own page when the question is what a crawler can read.
### Refresh it
Meta's crawler page says a failed or empty crawl can be repeated in the Sharing Debugger, or with the Sharing API. That is the debugger at developers.facebook.com/tools/debug. You need to be logged in. Scraping again updates what Meta has stored for that URL for FacebookExternalHit. Meta does not publish a separate Threads debugger, and it does not say that a Threads composer reads that cache. This checker shows the tags your server sends. It does not send Meta's Range header, and it does not clear that cache. A query string such as ?v=2 is a different URL. A post that already has a card keeps the one it stored.
Tags covered: og:title, og:description, og:image, og:url, og:type, og:image:width, og:image:height, twitter:card
# Snapchat Link Preview Checker
> How Snapchat's URL Preview Service builds a chat card from og:title and og:image, the published user agent, and the 30-minute cache. Snap publishes no pixel size.
Page: https://linkcard-tau.vercel.app/snapchat-link-preview
Snap's URL Preview Service builds a title, a subtitle, and a thumbnail when a link is shared in chat. Paste a URL to check the Open Graph tags that card is allowed to use. The cards below are the other platforms that read the same tags — Peekly does not draw a Snap.
## How Snapchat builds the chat preview
### The tags Snap names
Snap's robots page at developers.snap.com/robots says the URL Preview Service scans a site's HTML so a link shared in chat can show a card with a title, a subtitle, and a thumbnail. It prioritizes Open Graph tags, and the two it names are og:title and og:image. It will use X card tags when those are missing, and the names it prints are twitter:title and twitter:img:src. X's card docs name twitter:image, not twitter:img:src. Set og:title and an absolute https og:image, which is the pair Snap says it reads first. Also set og:description. The card has a subtitle, and Snap does not name the tag that fills it. Set twitter:title and twitter:image for X. Do not drop og:image in favor of either Twitter tag. Snap does not mention Stories or Spotlight on that page. The documented surface is chat.
```
```
### The user agent and the cache
The same page says the service requests with the user agent Snap URL Preview Service; bot; snapchat; https://developers.snap.com/robots, and that it caches the response for a URL for 30 minutes so it does not keep hitting one address. If the card is wrong, Snap's own steps are to allow-list that user agent and to put the metadata tags in the HTML header. Snap does not say the fetcher runs JavaScript, does not say whether it reads robots.txt, and does not publish a pixel size, a file-size cap, or a format list. Tags that exist only after the page hydrates are invisible to a fetcher that reads the HTML it was sent. This checker does not send Snap's user agent. It shows the tags your server returns to the fetch it does make.
### The image
Snap does not publish a pixel size. Ship the 1200×630 JPEG or PNG the Facebook image guide asks for, which is the large-card size this checker measures. og:image has to be an absolute https URL. A path with no host, an http:// file, or a login wall leaves the thumbnail empty. SVG is a miss where a platform publishes a format list, and Snap publishes no list, so a JPEG or PNG is the file that also works everywhere else. The Open Graph Image Size page has the sizes other platforms do publish.
### After you change the tags
Snap does not publish a debugger. The cache it does publish is 30 minutes for that URL. Wait that out, or share a URL Snap has not cached. A query string such as ?v=2 is a different URL, not a refresh of the original one. Snap does not say whether a chat that already showed a card rewrites itself. This checker shows the tags your server sends. It does not clear Snap's cache.
Tags covered: og:title, og:description, og:image, og:url, twitter:title, twitter:image, twitter:card
# How to add Open Graph tags
> Add og:title, og:description, og:image, and og:url in the HTML head: absolute https URLs, a 1200×630 image, and twitter:card. Free to check, no signup.
Page: https://linkcard-tau.vercel.app/how-to-add-open-graph-tags
og:title, og:description, og:image, and og:url are the title, the summary, the image, and the URL a share card is stored under. Put them in the HTML the server sends, then paste the public URL into the checker above. Checking one URL is free, and it does not ask you to sign up.
## Add the tags
### Four tags, written as properties
The Open Graph protocol puts these in the head as meta tags with a property attribute, not name. The four it requires on every page are og:title, og:type, og:image, and og:url. og:description is optional in the protocol and required in practice: it is the summary line under the title. og:title is the headline on the card, not your template's Loading state and not the site name repeated. og:description is one or two sentences. og:url is the canonical URL of this page, with https and no tracking parameters. On Facebook, likes and shares add up on og:url, so a tag that points every page at the homepage attaches every share to one card. og:type is website for a normal page and article for a post. Facebook's guide says website is the default when you leave the tag out. If you repeat a property, the protocol gives the first tag, top to bottom, preference.
```
```
### The image URL
og:image is a URL, and it has to be absolute. A path such as /og.png has no host, and the image slot stays empty. Use https. An http:// image is skipped by platforms that refuse it. The protocol's structured properties belong directly under the image they describe: og:image:width, og:image:height, og:image:type, and og:image:alt. Another og:image starts a new image, and the first one is the one a consumer prefers. Design the file at 1200×630. That is Facebook's high-resolution size, about 1.91:1, and the file must not exceed 8 MB. Facebook's image guide lists JPEG, GIF, and PNG. X's card docs add WEBP and exclude SVG. The Open Graph Image Size page has the rest of the published numbers. This checker downloads the URL and reports the dimensions, the type, and whether the file loaded.
### The large card on X
X reads og:title, og:description, and og:image as fallbacks. The layout still depends on twitter:card. Without summary_large_image, X shows a small thumbnail. Set twitter:title, twitter:description, and twitter:image only when they should differ from the Open Graph values. Use name for the twitter: tags. The [Next.js Open Graph](https://linkcard-tau.vercel.app/nextjs-open-graph) page shows the same fields as a metadata export, including an opengraph-image file. The [WordPress Open Graph](https://linkcard-tau.vercel.app/wordpress-open-graph) page is the theme or SEO plugin that prints them. The [Shopify Open Graph](https://linkcard-tau.vercel.app/shopify-open-graph) page is the Liquid on a product or collection. The [Astro Open Graph](https://linkcard-tau.vercel.app/astro-open-graph) page is a layout component. The [Nuxt Open Graph](https://linkcard-tau.vercel.app/nuxt-open-graph) page is useSeoMeta. The [Remix Open Graph](https://linkcard-tau.vercel.app/remix-open-graph) page is the meta export. The [SvelteKit Open Graph](https://linkcard-tau.vercel.app/sveltekit-open-graph) page is svelte:head. A tag that appears only after JavaScript runs is missing from the HTML a crawler fetched. View source, or curl the URL, and read the head of that response.
```
```
### Check the page you will share
Paste the public URL, not a localhost address. The checker only fetches public pages. It grades og:title, og:description, og:image, and the Twitter card from the HTML your server sends. A title that is your site name, or a description copied from a different page, is a tag that is present and wrong. If the image URL in the result is the old file, the HTML being fetched is the old HTML. The Open Graph Image Not Updating page is the case where the HTML is already right and the share still shows the previous picture.
Tags covered: og:title, og:description, og:image, og:url, og:type, og:image:width, og:image:height, og:image:alt, twitter:card
# Open Graph image not updating
> Why an og:image stays on the old picture after you replace the file. Facebook caches images by URL. How to refresh Facebook, X, Slack, LinkedIn, and Discord.
Page: https://linkcard-tau.vercel.app/og-image-not-updating
Replacing the file is not the same as changing the URL a platform already stored. Paste the page above and read the image URL in the result. Checking one URL is free, and it does not ask you to sign up. If that URL already returns the new picture and the share still shows the old one, the platform is serving a stored copy.
## Why the old image sticks
### Facebook caches the image by its URL
Facebook's image guide says the crawler scrapes and caches the metadata from the URL you share, and that it caches every referenced image based on that image's URL. Replacing the bytes at the same address does not update the stored image. The guide's instruction is to use a new URL for the new image, and to leave the old file in place, because existing stories can still point at it. Changing the image for a page does not rewrite a share that was already posted. You refresh that stored preview separately. The first person to share an uncached URL can also see a card with no picture, because the crawler has to download the image before it can draw it. og:image:width and og:image:height let that first share render without waiting for the download. The same guide says you can pre-cache by running the page URL through the Sharing Debugger, or by a force-scrape with the Graph API.
### Point og:image at a new URL, then scrape
Give the new file its own address. A new filename does that. A query string on the image URL, such as og.png?v=2, is also a different URL, which is what Facebook's rule is about. Then put that address in og:image and scrape the page again in the Sharing Debugger at developers.facebook.com/tools/debug. You need to be logged in. The scrape updates the metadata Facebook has stored, including the image URL it will fetch. A query string on the page, such as ?v=2 on the article, is a different page. It does not change an image Facebook already saved under the old image URL, and the undecorated URL keeps the card it had. FacebookExternalHit is the crawler Meta documents for a link shared on Facebook, Instagram, or Messenger. The Instagram Link Preview Checker page covers that shared cache. This checker shows the tags your server sends and downloads the image URL. It does not clear Facebook's cache.
### Your own cache can answer first
If this checker still shows the old image URL, the HTML being fetched is the old HTML: a cached document, a CDN in front of the page, or a tag that never shipped. If the tag is the new URL and the downloaded file is still the old picture, the cache is on the image itself. A long Cache-Control max-age, or a CDN that ignores the new file, serves the previous bytes to every crawler. The new URL is how you miss that cache. Confirm the image URL on its own returns image/jpeg or image/png, with no login page, before you scrape again. SVG is a miss where a platform publishes a format list. Facebook's guide lists JPEG, GIF, and PNG.
### X, Slack, LinkedIn, and the rest
X does not publish a scrape-again tool, and it does not publish a rule that image bytes stay keyed to the image URL. The old Card Validator no longer shows a preview. A query string on the page is a different URL, fetched on its own. The original URL updates when X fetches it again. Slack caches the crawl for around 30 minutes and publishes no debugger. Share a URL Slack has not cached, or wait. Discord's link-preview docs say a preview is cached for about 30 minutes, and the way they document for seeing a change immediately is a new query string. The Embed Debugger at discord.com/developers/embeds shows the tags Discord read. LinkedIn's tool is Post Inspector. LinkedIn's help says that refresh applies to new posts, messages, and articles. Anything already published keeps the preview it had. WhatsApp, iMessage, and Reddit publish no refresh tool. The Refresh a Link Preview Cache page lists the tool each platform actually documents. A post or message that already stored a card keeps it. Fix the image URL, confirm it here, then share the link again where the platform requires a new post.
Tags covered: og:image, og:image:url, og:image:width, og:image:height, og:url, twitter:image
# Discord Link Preview
> How Discord builds a link preview from Open Graph and JSON oEmbed, why the embed is blank, and how to check the tags with Peekly. Free, no signup.
Page: https://linkcard-tau.vercel.app/discord-link-preview
Discord unfurls a pasted link by fetching the page and reading the HTML. Paste a URL to see the Open Graph tags that preview is built from. The large image, the thumbnail, and the accent color are on the [Discord Embed Preview](https://linkcard-tau.vercel.app/discord-embed-preview) page.
## How Discord unfurls a link
### The fetch
Discord's link preview docs describe one GET of the URL that was shared. The tags have to be in that HTML. Discord does not execute the page, so a tag added by a client-side script is never seen. The response has to be HTTP or HTTPS, status 2xx, content type text/html or application/xhtml+xml, and not a download (Content-Disposition: attachment). Discord follows at most 5 redirects, reads at most 50 MB, and the whole fetch, including measuring images and video, has to finish within 10 seconds. The user agent they publish is Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com). Their support page says to look for the word Discordbot in that agent, and to check the IP against Discord's published ranges when a firewall decision depends on it, because the user agent string can be copied.
### Open Graph, then oEmbed
The title is the first non-empty og:title or twitter:title. The description is og:description, then twitter:description. og:site_name is the name above the title. The image comes from og:image, og:image:url, og:image:secure_url, twitter:image, or twitter:image:src. For the title, the description, and the site name, the first non-empty tag wins. For layout, color, and date, the last tag in the document wins. twitter:card values of player, summary_large_image, and photo change the layout. theme-color sets the accent, as #RRGGBB or #RRGGBBAA. JSON oEmbed is discovered from the first link with type application/json+oembed, and it runs after Open Graph. Its title is used only when no Open Graph or Twitter title was found. thumbnail_url is used only when no Open Graph image was found, and it is dropped unless thumbnail_width and thumbnail_height are both set. author_name and author_url are the author line Discord documents. provider_name and provider_url replace og:site_name and add a link. type sets the layout only when og:type and twitter:card did not. html, url, width, height, and cache_age are ignored, and a failed oEmbed fetch is ignored. The [Discord Embed Preview](https://linkcard-tau.vercel.app/discord-embed-preview) page is the large image summary_large_image selects.
```
```
### Why the preview fails
The preview is missing when those tags are absent from the server HTML, the status is not 2xx, the redirect chain is longer than 5, or the fetch does not finish in 10 seconds. Discord drops the whole preview when og:site_name is over 256 characters, image alt text is over 4,096 characters, or any URL is over 2,048 characters. A title over 70 bytes is trimmed. A description over 350 bytes is trimmed, and HTML in it is shown as text. On og:type rich, that description is rendered as Discord markdown. The image formats they list are png, gif, jpg, jpeg, webp, and avif. A relative image URL has to start with /. Two or more og:image tags become a gallery, and at most 4 are shown. A URL that points straight at an image file previews with no metadata. Video is mp4, webm, or mov, served over https, with og:image as the frame. Their quick start uses a 1200×630 image. The docs publish no minimum pixel size. The [Open Graph Image Size](https://linkcard-tau.vercel.app/og-image-size) page is the sizes other platforms do publish.
### Check it with Peekly
Paste the public URL above. Peekly reads the HTML your server sends and grades og:title, og:description, og:image, og:site_name, theme-color, and twitter:card. It uses the first og:image. It does not request your oEmbed URL, and it does not send Discordbot. Discord caches a preview for about 30 minutes, and resharing that URL in the window shows the stored card. The way their docs show a change immediately is a new query string, such as ?v=2. The Embed Debugger at discord.com/developers/embeds shows the tags Discord read and the layout it chose. A message already sent keeps its embed. The [Refresh a Link Preview Cache](https://linkcard-tau.vercel.app/refresh-link-preview-cache) page lists that cache next to the other platforms.
Tags covered: og:title, og:description, og:image, og:site_name, twitter:card, theme-color, application/json+oembed
# X (Twitter) Link Preview
> How an X link preview uses Twitter Cards and Open Graph: summary_large_image, the og: fallbacks, common mistakes, and how to validate the tags with Peekly.
Page: https://linkcard-tau.vercel.app/x-twitter-link-preview
A link preview on X is a Twitter Card. twitter:card picks the layout. The title, description, and image fall back to Open Graph when the twitter: copies are missing. Paste a URL to see which card the tags produce. The same check, focused on the card, is the [Twitter Card Validator](https://linkcard-tau.vercel.app/twitter-card-validator).
## Cards and Open Graph
### The tag that picks the layout
X's published card docs define summary, summary_large_image, app, and player. summary_large_image is the large image. summary is the small thumbnail, cropped square. There is no Open Graph tag that selects that layout. Set twitter:card with the name attribute, which is the attribute the card markup uses. Open Graph tags use property. Without summary_large_image, X shows the small thumbnail. Peekly warns when twitter:card is missing and reports that fallback. The [Twitter Card Validator](https://linkcard-tau.vercel.app/twitter-card-validator) shows the card those tags produce.
### What falls back to Open Graph
twitter:title falls back to og:title. twitter:description falls back to og:description. twitter:image falls back to og:image. Set the twitter: title, description, and image when the X card should differ from the Open Graph values. A page that already has those og: tags still needs twitter:card. twitter:site and twitter:creator are the attribution handles. They have no Open Graph equivalent, and they are optional. Peekly shows the title and image the card will use after that fallback.
```
```
### Image mistakes
X's published summary_large_image rules are a 2:1 image, at least 300×157, at most 4096×4096, under 5 MB. JPG, PNG, WEBP, and GIF are supported. SVG is not. summary is 1:1, at least 144×144, also under 5 MB. A 1200×630 Open Graph image is 1.91:1, so it is a little taller than 2:1. The image URL has to be absolute https. A path with no host, an http:// file, or a login wall leaves the image slot empty. A tag that appears only after JavaScript runs is missing from the HTML Twitterbot fetched. The [Open Graph Image Size](https://linkcard-tau.vercel.app/og-image-size) page has the rest of the published numbers. The [How to Add Open Graph Tags](https://linkcard-tau.vercel.app/how-to-add-open-graph-tags) page is the four og: tags those fallbacks read.
### Validate the card
X does not publish a scrape-again tool. The old Card Validator no longer shows a preview. Paste the public URL here. Peekly reads twitter:card, follows the image fallback, downloads the file, and reports the dimensions and the file size. It does not clear a card X already stored. A query string such as ?v=2 is a different URL, fetched on its own. The original URL updates when X fetches it again. The [Refresh a Link Preview Cache](https://linkcard-tau.vercel.app/refresh-link-preview-cache) page is that wait, next to the tools Facebook and LinkedIn publish.
Tags covered: twitter:card, twitter:title, twitter:description, twitter:image, og:title, og:description, og:image
# Open Graph tags in WordPress
> Add and fix Open Graph tags in WordPress with a theme, Yoast SEO, or Rank Math, then verify the HTML Peekly fetches. Covers duplicate og:image tags.
Page: https://linkcard-tau.vercel.app/wordpress-open-graph
WordPress core prints a document title. og:title, og:description, og:image, and og:url come from a theme or an SEO plugin, written into the head on wp_head(). Publish the page, then paste the public URL into the checker above.
## Where the tags come from
### Printed from wp_head
Themes that follow the theme handbook call wp_head() inside the head: header.php on a classic theme, and the document head on a block theme. Plugins attach to that action. A tag a page builder inserts only in the browser, after load, is absent from the HTML a crawler fetched. View source, or curl the URL, and read the head. With no SEO plugin, a child theme can print the tags on wp_head. A child theme keeps the hook when the parent theme updates. Skip the hook when Yoast or Rank Math is already printing the same properties. The Open Graph protocol gives the first tag preference when they conflict, and this checker reads the first og:title, og:description, and og:image. The [How to Add Open Graph Tags](https://linkcard-tau.vercel.app/how-to-add-open-graph-tags) page is the four tags and the image URL rules. The [Next.js Open Graph](https://linkcard-tau.vercel.app/nextjs-open-graph) page is the same fields as a metadata export.
```
add_action('wp_head', function () {
if (!is_singular()) return;
$image = get_the_post_thumbnail_url(null, 'full');
echo '' . "\n";
echo '' . "\n";
echo '' . "\n";
echo '' . "\n";
if ($image) echo '' . "\n";
echo '' . "\n";
});
```
### Yoast SEO
Yoast's help says Open Graph output is on by default, under Yoast SEO → Settings → Site features → Open Graph data. Their functional spec, when that output is enabled, lists og:locale, og:type, og:title, og:url, and og:site_name on pages that are not error templates. og:type is website on the homepage, profile on a user archive, and article on posts, pages, and other templates. og:title uses the first value that exists: a Facebook title on the page, a social title template, an SEO title on the page, an SEO title template, then %%title%% %%page%% %%sep%% %%sitename%%. og:url is the canonical URL, or the series root on paginated content. og:description uses a Facebook description, then a social description template, then the meta description, then the excerpt on a post. og:image uses a Facebook image on the Social tab, then the featured image on a post, then a prominent image in the content, then the social default image, then the site default at SEO → Social → Facebook → Default image. Yoast SEO WooCommerce adds the first product-gallery image to that list. og:image:width and og:image:height are printed when Yoast knows both. article:published_time is printed on posts. Yoast warns that a second plugin writing Open Graph can make a network use the wrong text or image. Turn the extra output off. Their spec removed og:image:secure_url in Yoast SEO 14.0, so a secure_url tag beside theirs is coming from the theme or another plugin.
### Rank Math
Rank Math's Open Graph guide says the plugin writes og:title, og:type, og:url, og:description, and og:image, and that og:type follows the content: website, profile, article, or product. The image order they publish is the Open Graph image on the post, then the featured image, then the first image in the post, then the default thumbnail at Rank Math SEO → Titles & Meta → Global Meta → OpenGraph Thumbnail. They recommend 1200×630, and they name JPEG, PNG, and GIF, the formats in Facebook's image guide. og:site_name comes from Rank Math → Titles & Meta → Local SEO, then the site title in Settings → General. The Twitter tab can reuse the Facebook title, description, and image, or replace them. The card types they list include Summary Card with Large Image, which is the summary_large_image value. A homepage that lists the latest posts has its own thumbnail under Titles & Meta → Homepage. Use Yoast or Rank Math for these tags, and turn off a theme setting that prints a second og:image. The [X (Twitter) Link Preview](https://linkcard-tau.vercel.app/x-twitter-link-preview) page is what that twitter:card value does.
### Check the public URL
Paste the public post URL. Peekly fetches the HTML and grades og:title, og:description, og:image, and twitter:card. A title that is only the site name is a template that never received the post title. An image URL that is the site logo is the default image, which means the featured image and the social image were both empty. When the source has two og:image tags, this checker keeps the first. A page cache can keep serving the old head after you save. If the result still shows the old title, the HTML being fetched is the old HTML. The [Open Graph Image Not Updating](https://linkcard-tau.vercel.app/og-image-not-updating) page is the case where the HTML is already right and the share still shows the previous picture.
Tags covered: og:title, og:description, og:image, og:url, og:type, og:site_name, twitter:card
# Open Graph tags in Shopify
> Open Graph and Twitter card tags on Shopify product and collection pages. Dawn's Liquid, page_image, common preview failures, and how to verify them with Peekly.
Page: https://linkcard-tau.vercel.app/shopify-open-graph
A Shopify theme prints Open Graph tags in Liquid, in the HTML the storefront sends. On a product or collection, the image is the featured image, then the social sharing image. Paste the public product or collection URL into the checker above.
## Tags on a product and a collection
### What Dawn prints
Shopify's Dawn theme renders snippets/meta-tags.liquid from layout/theme.liquid, before content_for_header. og:title is page_title, or the shop name when that is empty. og:url is canonical_url, or the shop origin. og:description is page_description, then the shop description, then the shop name. og:type is product on a product page, article on an article, and website on every other template, including a collection. On a product, Dawn also prints og:price:amount from product.price passed through money_without_currency, and og:price:currency from cart.currency.iso_code. That property is og:price. The product namespace a rich Pin reads is product:price:amount, which the [Pinterest Link Preview](https://linkcard-tau.vercel.app/pinterest-link-preview) page covers. twitter:card is summary_large_image. twitter:title and twitter:description copy the Open Graph text. Dawn leaves twitter:image unset, so the image falls back to og:image. twitter:site is added when the theme's X link is filled in. The [X (Twitter) Link Preview](https://linkcard-tau.vercel.app/x-twitter-link-preview) page is that card type and that fallback.
```
```
### Products, collections, and page_image
Shopify's page_image object is the featured image on a product, a collection, and a blog post. On every other page, and when that featured image is missing, it is the social sharing image. Set that image in the Shopify admin under Online Store → Preferences, in Social sharing image and SEO. Shopify's help lists a priority when several images exist: an image hard-coded in the theme, then an image in theme settings, then the Preferences image. Dawn's snippet is theme code, so the og:image in the HTML is the one it prints from page_image. Their help also says that when no social sharing image is uploaded, a theme logo can be used, and a logo that is small or on a transparent background is padded with the theme background color. A collection with no collection image, or a product with no featured image, shares that fallback. Set the featured image on the product or the collection when the card should show the product. If the rendered page contains no og:image tag, Shopify's page_image docs say the platform adds og:image, og:image:secure_url, og:image:width, and og:image:height from page_image. Dawn already prints those tags when page_image is present.
### The image URL Dawn writes
Dawn writes og:image as http: plus page_image | image_url, and og:image:secure_url as https: plus the same filter. image_url returns a protocol-relative URL, so the first tag is an http:// file on the Shopify CDN and the second is https://. This checker reads the first og:image and warns on an http:// image, because some platforms refuse it. A consumer that reads og:image:secure_url receives the https URL Dawn also printed. The filter in that snippet is called with no width, so the file can be the original upload. Facebook's cap is 8 MB. X's summary_large_image cap is 5 MB. Request a width of 1200 and put that https URL in og:image. page_image.width is the original file, so leaving it next to a resized URL declares a size the URL does not serve. Set og:image:width and og:image:height to the resized file, or leave them off. A square product photo is still square at 1200 wide, and this checker will say so. The [Open Graph Image Size](https://linkcard-tau.vercel.app/og-image-size) page is the 1200×630 baseline and the published caps.
```
```
### Check the storefront URL
A password-protected store serves the password page to a logged-out fetch. On that template Dawn points og:url at the shop origin, and the product tags are not in the response. Check a URL the crawler can open. A tag an app inserts with JavaScript in the browser is missing from that HTML. Liquid in the theme is in the response. A second set of og: tags from an SEO app, later in the head, does not replace the first, because content_for_header comes after the meta-tags snippet and the protocol keeps the first value. Paste the public https product or collection URL. Peekly grades og:title, og:description, og:image, and twitter:card, downloads the image, and reports the dimensions and the file size. It does not log into the shop, and it does not clear a card a platform already stored. The [How to Add Open Graph Tags](https://linkcard-tau.vercel.app/how-to-add-open-graph-tags) page is the same four tags on a site you edit as HTML.
Tags covered: og:title, og:description, og:image, og:image:secure_url, og:type, og:url, twitter:card, og:price:amount
# Open Graph tags in Astro
> Add Open Graph and Twitter card tags in Astro with a layout, Markdown frontmatter, and a head component. Set site so og:image is an absolute URL.
Page: https://linkcard-tau.vercel.app/astro-open-graph
Astro prints the meta tags that are in the layout head. Pass the title, description, and image in from the page, or read them from Markdown frontmatter. Build the site, then paste the public URL into the checker above.
## Add the tags
### A head component in the layout
Astro's config docs say the config file is for the build, and common SEO metadata goes in the page head as ordinary meta tags. The pattern they show is a small Astro component, included from a shared layout, so every page gets the same tags. Set site in astro.config.mjs to the deployed origin, including https. Astro.site is that value. new URL(Astro.url.pathname, Astro.site) is og:url, and new URL("/og.png", Astro.site) is og:image. An absolute image URL is kept as written. A root path is joined to site. When site is missing, Astro.site is undefined and that constructor throws, and @astrojs/sitemap will not generate. og: tags use the property attribute. twitter:card uses name. summary_large_image is the large card on X. The [How to Add Open Graph Tags](https://linkcard-tau.vercel.app/how-to-add-open-graph-tags) page is those properties and the image URL rules. The [Next.js Open Graph](https://linkcard-tau.vercel.app/nextjs-open-graph) page is the same fields as a metadata export.
```
---
const { title, description, image = "/og.png" } = Astro.props;
const canonical = new URL(Astro.url.pathname, Astro.site);
const ogImage = new URL(image, Astro.site);
---
```
### Markdown frontmatter
A Markdown file in src/pages/ can set layout to a relative path. That key is the one Astro treats as special, and only for files in src/pages/. Every other frontmatter key arrives on the layout as Astro.props.frontmatter. title and description there are the share title and summary. image should be a root path such as /og.png, or an absolute https URL. Content collections do not treat layout as special. Render a collection entry from an .astro page and pass the entry data into the layout as ordinary props. When a Markdown file uses the layout key, Astro stops inserting the charset for you, so the layout head has to include it. The slot is the rendered Markdown. An image imported from src/ exposes src, width, and height. Use that width and height for og:image:width and og:image:height when the file is not 1200×630. The [Open Graph Image Size](https://linkcard-tau.vercel.app/og-image-size) page is that 1200×630 baseline.
```
src/pages/posts/post.md
---
layout: ../../layouts/Post.astro
title: Post title
description: One or two sentences.
image: /og.png
---
src/layouts/Post.astro
---
import Head from "../components/Head.astro";
const { frontmatter } = Astro.props;
---
```
### The sitemap integration
@astrojs/sitemap writes sitemap-index.xml and sitemap-0.xml when you build. It needs site, and the origin has to start with http:// or https://. It includes static routes and pages from getStaticPaths(). The integration docs say it cannot add entries for dynamic routes rendered on demand. filter, customPages, and serialize change that XML. They do not change the share card. A link rel="sitemap" in the head points crawlers at the index file. It is a discovery hint for the sitemap, and it is separate from og:title and og:image. Install it with npx astro add sitemap, or add the package and the integrations entry yourself. The Open Graph tags still come from the layout component above. The [Open Graph Checker](https://linkcard-tau.vercel.app/open-graph-checker) reads those meta tags from the page HTML.
```
import { defineConfig } from "astro/config";
import sitemap from "@astrojs/sitemap";
export default defineConfig({
site: "https://example.com",
integrations: [sitemap()],
});
```
### What a crawler receives
The default Astro output is static HTML, and the meta tags in the layout are in that file. A server-rendered route runs the same template for the request, and the tags are in that response. A script inside a client island that writes a meta tag after load is absent from the HTML a crawler fetched. View source, or curl the URL, and read the head. Paste the public URL, not a localhost address. Peekly grades og:title, og:description, og:image, and twitter:card, and it downloads the image. The [Twitter Card Validator](https://linkcard-tau.vercel.app/twitter-card-validator) is the card summary_large_image selects. The [Nuxt Open Graph](https://linkcard-tau.vercel.app/nuxt-open-graph), [Remix Open Graph](https://linkcard-tau.vercel.app/remix-open-graph), and [SvelteKit Open Graph](https://linkcard-tau.vercel.app/sveltekit-open-graph) pages are the same tags in those frameworks.
Tags covered: og:title, og:description, og:image, og:url, og:type, twitter:card, twitter:image
# Open Graph tags in Nuxt
> Set Open Graph and Twitter card tags in Nuxt 3 with useSeoMeta or useHead. Use an absolute og:image, and keep SSR on so the tags are in the first HTML.
Page: https://linkcard-tau.vercel.app/nuxt-open-graph
useSeoMeta writes og:title, og:description, og:image, and twitter:card into the head Unhead renders on the server. Call it from the page, with an absolute image URL. Deploy it, then paste that public URL into the checker above.
## Add the tags
### useSeoMeta
Nuxt's SEO guide recommends useSeoMeta. The keys are typed, Open Graph keys are written with property, and Twitter keys are written with name, which avoids the mistake of putting og:title on a name attribute. ogTitle becomes og:title. ogDescription becomes og:description. ogImage becomes og:image. ogUrl becomes og:url. ogImageWidth and ogImageHeight become the structured image tags. twitterCard becomes twitter:card. Set it to summary_large_image, or X shows a small thumbnail. The string passed to ogImage is the content attribute, so a path such as /og.png has no host. Use an absolute https URL. A ref or a getter, written () => value, is how the composable docs say to pass a value that changes. Static tags can sit inside if (import.meta.server). That is the pattern Nuxt documents in place of the deprecated useServerSeoMeta, and it runs while the server is rendering the HTML a crawler reads. The [How to Add Open Graph Tags](https://linkcard-tau.vercel.app/how-to-add-open-graph-tags) page is the properties those keys emit. The [Next.js Open Graph](https://linkcard-tau.vercel.app/nextjs-open-graph) page is the same fields as a metadata export.
```
```
### useHead, and the title template
useHead is the lower-level composable. A meta entry with property is an Open Graph tag. A meta entry with name is the description or a Twitter tag. Nuxt also ships Head, Title, and Meta components. The docs say to wrap them in Head so deduping stays predictable, and a Meta nested inside Head is still rendered in the document head. definePageMeta is extracted at build time. The SEO guide says it cannot be set from a value you compute at runtime. The pattern they show is a static title on the page, read back as route.meta.title from a layout. A title that comes from a fetched post belongs in useSeoMeta or useHead after that data exists. app.head in nuxt.config.ts is the static default for the whole app. It is not reactive. A titleTemplate in app.vue rewrites the document title, including a %s placeholder. It leaves og:title alone, so set ogTitle to the string the card should show. Unhead keeps one tag for a given property or name, so the page's og:title replaces the layout's.
```
useHead({
meta: [
{ property: "og:title", content: "Post title" },
{ property: "og:description", content: "One or two sentences." },
{ property: "og:url", content: "https://example.com/post" },
{ property: "og:image", content: "https://example.com/og.png" },
{ name: "twitter:card", content: "summary_large_image" },
{ name: "twitter:image", content: "https://example.com/og.png" },
],
link: [{ rel: "canonical", href: "https://example.com/post" }],
})
```
### The first HTML response
Unhead renders these tags during server-side rendering, so they are in the first HTML response. SSR is Nuxt's default. ssr: false in nuxt.config turns the app into a client-rendered shell. The composable then runs in the browser, and a crawler that does not execute JavaScript receives a head without the page's og: tags. The useSeoMeta docs say robots primarily scan that initial page load, which is why static tags belong in the server render. Tags set inside onMounted have the same hole. View source, or curl the URL, and read the head. The Open Graph protocol gives the first tag preference when two of the same property are present, and this checker reads the first og:title, og:description, and og:image. One tag in the HTML is the result you want. Set twitterImage when the X image should differ from og:image. X falls back to og:image for the file, and twitter:card is what selects the large layout. The [X (Twitter) Link Preview](https://linkcard-tau.vercel.app/x-twitter-link-preview) page is that fallback.
### Check the public URL
Paste the public URL, not a localhost address. Peekly grades og:title, og:description, og:image, and twitter:card from the HTML your server sends, and it downloads the image. A title that is only the site name is a titleTemplate whose page title was empty, or an ogTitle that was never set. An image URL that starts with a slash is the relative path the composable was given. The [Open Graph Checker](https://linkcard-tau.vercel.app/open-graph-checker) is that grade. The [Twitter Card Validator](https://linkcard-tau.vercel.app/twitter-card-validator) is the card twitterCard selects. The [Astro Open Graph](https://linkcard-tau.vercel.app/astro-open-graph), [Remix Open Graph](https://linkcard-tau.vercel.app/remix-open-graph), and [SvelteKit Open Graph](https://linkcard-tau.vercel.app/sveltekit-open-graph) pages are the same tags in those frameworks. The [Open Graph Image Size](https://linkcard-tau.vercel.app/og-image-size) page is the 1200×630 file those width and height values should describe.
Tags covered: og:title, og:description, og:image, og:url, og:type, twitter:card, twitter:image
# Open Graph tags in Remix
> Add Open Graph and Twitter card tags in Remix with the meta export. Render Meta in the root head, and merge parent tags so a child route keeps og:image.
Page: https://linkcard-tau.vercel.app/remix-open-graph
A route's meta function returns the descriptors Remix turns into meta tags. Render the Meta component inside the root head, or the document response has none of them. Deploy it, then paste the public URL into the checker above.
## Add the tags
### The meta export
Remix v2's meta docs say the function returns an array of descriptors, one object per tag. A title property becomes the title element. property becomes a meta property attribute, which is what og: tags use. name becomes a meta name attribute, which is what twitter:card uses. content is the attribute value. tagName set to link, with rel canonical, is how the same export prints the canonical URL. Put an absolute https URL in og:image. A path with no host is still a path in the HTML. summary_large_image is the large card on X. The v1 meta export was an object that merged by key. v2 does not do that merge for you. The [How to Add Open Graph Tags](https://linkcard-tau.vercel.app/how-to-add-open-graph-tags) page is the properties these descriptors emit. The [Next.js Open Graph](https://linkcard-tau.vercel.app/nextjs-open-graph) page is the same fields as a metadata export.
```
import type { MetaFunction } from "@remix-run/node";
export const meta: MetaFunction = () => {
return [
{ title: "Post title" },
{ name: "description", content: "One or two sentences." },
{ property: "og:title", content: "Post title" },
{ property: "og:description", content: "One or two sentences." },
{ property: "og:url", content: "https://example.com/post" },
{ property: "og:type", content: "article" },
{ property: "og:image", content: "https://example.com/og.png" },
{ property: "og:image:width", content: "1200" },
{ property: "og:image:height", content: "630" },
{ name: "twitter:card", content: "summary_large_image" },
{ name: "twitter:image", content: "https://example.com/og.png" },
{ tagName: "link", rel: "canonical", href: "https://example.com/post" },
];
};
```
### Meta in the root head
The descriptors are rendered by the Meta component. Remix's docs put it in app/root.tsx, inside head, next to Links. Charset and the viewport tag are written as ordinary meta elements in that file, outside the meta export, so a child route cannot drop them by returning its own array. When Meta is missing from that document, the response has no og: tags, including on a route whose meta function is correct. A meta tag created in a component after hydration is not in the document request. That request is rendered on the server, and that HTML is what a crawler fetches. View source on the document response, not the head after the browser has navigated.
```
import { Links, Meta, Outlet, Scripts } from "@remix-run/react";
export default function App() {
return (
);
}
```
### A child route replaces the parent array
Remix uses the meta export from the last matching route that has one. A parent that sets og:image and a child that returns only a title leaves that child URL with no og:image. The merge the docs show is matches.flatMap of each match.meta. Spreading that array keeps the parent tags. It does not replace a title or an og:title already in the list, so the HTML can contain two of them. Filter the parent descriptors you are about to set again, then append the child's. The Open Graph protocol gives the first tag preference, and this checker reads the first og:title, og:description, and og:image. Two og:image tags means the card can show the parent's image. data on the meta arguments is the value the route's loader returned. When the loader throws, data is missing, so return the parent tags rather than reading fields off undefined. Build the image URL from the request origin. A root path in the loader is still a root path in the tag.
```
import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";
import { json } from "@remix-run/node";
const replaced = new Set([
"og:title",
"og:description",
"og:url",
"og:image",
"twitter:card",
"twitter:image",
]);
export async function loader({ request }: LoaderFunctionArgs) {
const origin = new URL(request.url).origin;
return json({
title: "Post title",
description: "One or two sentences.",
image: new URL("/og.png", origin).href,
});
}
export const meta: MetaFunction = ({ data, matches }) => {
const parentMeta = matches
.flatMap((match) => match.meta ?? [])
.filter((meta) => !("title" in meta))
.filter((meta) => {
const property = "property" in meta ? meta.property : undefined;
const name = "name" in meta ? meta.name : undefined;
if (property && replaced.has(property)) return false;
if (name && replaced.has(name)) return false;
return true;
});
if (!data) return [...parentMeta, { title: "Not found" }];
return [
...parentMeta,
{ title: data.title },
{ property: "og:title", content: data.title },
{ property: "og:description", content: data.description },
{ property: "og:image", content: data.image },
{ name: "twitter:card", content: "summary_large_image" },
{ name: "twitter:image", content: data.image },
];
};
```
### Check the document response
Paste the public URL. Peekly fetches the HTML and grades og:title, og:description, og:image, and twitter:card. It does not run the Remix router in a browser. When the result is missing tags that the meta export returns, Meta is absent from the head that was served, or a parent export is the last one and the child never merged. The [Open Graph Checker](https://linkcard-tau.vercel.app/open-graph-checker) is that grade. The [Twitter Card Validator](https://linkcard-tau.vercel.app/twitter-card-validator) is the card. The [Astro Open Graph](https://linkcard-tau.vercel.app/astro-open-graph), [Nuxt Open Graph](https://linkcard-tau.vercel.app/nuxt-open-graph), and [SvelteKit Open Graph](https://linkcard-tau.vercel.app/sveltekit-open-graph) pages are the same tags in those frameworks. The [Open Graph Image Size](https://linkcard-tau.vercel.app/og-image-size) page is the file the width and height descriptors should describe.
Tags covered: og:title, og:description, og:image, og:url, og:type, twitter:card, twitter:image
# Open Graph tags in SvelteKit
> Add Open Graph and Twitter card tags in SvelteKit with svelte:head. They render into %sveltekit.head% during SSR. Adapters do not write the tags.
Page: https://linkcard-tau.vercel.app/sveltekit-open-graph
svelte:head is rendered on the server and inserted where %sveltekit.head% sits in app.html. Return the title, description, and image from load, and read them once in the root layout. Deploy it, then paste the public URL into the checker above.
## Add the tags
### svelte:head, fed by page.data
Svelte's docs say svelte:head inserts elements into document.head, and during server rendering that head content is separate from the body. The element has to be at the top level of the component. It cannot sit inside an if block or another element. SvelteKit's load docs say a parent layout's own data prop includes that layout and its parents, and a child page's return value is read in the layout as page.data. Their example is a title in svelte:head in the root layout, taken from page.data.title. Import page from $app/state. On a SvelteKit 2 release from before that module, import page from $app/stores and read $page.data. og: tags use property. twitter:card uses name. summary_large_image is the large card on X. The [How to Add Open Graph Tags](https://linkcard-tau.vercel.app/how-to-add-open-graph-tags) page is those properties. The [Next.js Open Graph](https://linkcard-tau.vercel.app/nextjs-open-graph) page is the same fields as a metadata export.
```
{page.data.title}
{@render children()}
```
### One set of tags, and the prerender origin
Return the card fields from load. When a layout load and a page load use the same key, SvelteKit's load docs say the last one wins, so a root layout can return a default title and image and the page load can replace them. The layout then has a single svelte:head. A second svelte:head on the page is added as well. SvelteKit does not drop the layout's og:title when the page prints another, and this checker reads the first og:title, og:description, and og:image. A Svelte 4 layout uses a slot element in place of {@render children()}, and it imports page from $app/stores. During a real request, url.origin is the host that was requested. During prerender, the default origin is http://sveltekit-prerender until kit.prerender.origin is the public https origin. An og:image built from that default is an address no crawler can fetch. Set the origin before you trust absolute URLs in a prerendered file.
```
import type { LayoutServerLoad } from "./$types";
export const load: LayoutServerLoad = ({ url }) => {
return {
title: "Example",
description: "One or two sentences.",
canonical: new URL(url.pathname, url.origin).href,
image: new URL("/og.png", url.origin).href,
};
};
```
### %sveltekit.head% and the adapter
src/app.html is the document shell. The starter places %sveltekit.head% inside head, and that token is where svelte:head is written during server rendering. Removing the token, or placing it outside head, leaves the component's tags out of the HTML. A title or og:image written in app.html above that token is on every page. It comes first, so it is the value this checker keeps when the layout also prints one. @sveltejs/adapter-auto, adapter-node, adapter-vercel, adapter-cloudflare, and adapter-static decide how that HTML is served or written to disk. They do not generate Open Graph tags. adapter-static prerenders by saving the server-rendered response. The page-options docs say ssr set to false renders an empty shell, and prerendering saves that shell. A shell has no svelte:head from the page. Leave ssr on for any route whose card matters. The adapter line in svelte.config.js is the deployment target. The tags are the svelte:head above it.
```
import adapter from "@sveltejs/adapter-auto";
/** @type {import("@sveltejs/kit").Config} */
const config = {
kit: {
adapter: adapter(),
prerender: {
origin: "https://example.com",
},
},
};
export default config;
```
### Check the public URL
Paste the public URL. Peekly reads the HTML your server sends, or the file the prerender wrote, and grades og:title, og:description, og:image, and twitter:card. It downloads the image. An image host of sveltekit-prerender is the default prerender origin. A missing tag means the head was not in the response: ssr is off, the %sveltekit.head% token was removed, or the values were assigned in onMount. The [Open Graph Checker](https://linkcard-tau.vercel.app/open-graph-checker) is that grade. The [Twitter Card Validator](https://linkcard-tau.vercel.app/twitter-card-validator) is the card. The [Astro Open Graph](https://linkcard-tau.vercel.app/astro-open-graph), [Nuxt Open Graph](https://linkcard-tau.vercel.app/nuxt-open-graph), and [Remix Open Graph](https://linkcard-tau.vercel.app/remix-open-graph) pages are the same tags in those frameworks. The [Open Graph Image Size](https://linkcard-tau.vercel.app/og-image-size) page is the 1200×630 file the width and height should describe.
Tags covered: og:title, og:description, og:image, og:url, og:type, twitter:card, twitter:image