The Open Graph tags every page needs
Four tags are required by the Open Graph protocol, and a description is expected by every major platform. With these in the <head>, a shared link shows a proper card:
<meta property="og:title" content="Open Graph Checker">
<meta property="og:description" content="Preview link cards before you share.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://example.com/page/">
<meta property="og:image" content="https://example.com/images/card-1200x630.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="What the image shows">
<meta name="twitter:card" content="summary_large_image">Note the attribute names: Open Graph uses property=, Twitter Card tags use name=. Most platforms accept either, but sticking to the specification avoids surprises.
Image requirements by platform
| Platform | Recommended | Notes |
|---|---|---|
| 1200 × 630px | Minimum 200 × 200; under 600px wide shows as a small thumbnail; up to 8 MB | |
| 1200 × 627px | Same 1.91:1 ratio; reads Open Graph tags | |
| X | 1200 × 630px with summary_large_image | Cropped to roughly 2:1; summary cards show a square thumbnail; under 5 MB |
| Slack, Discord, WhatsApp, iMessage | 1200 × 630px | Use Open Graph tags; small images may be dropped |
One 1200 × 630 JPG or PNG works everywhere. Keep text and logos away from the edges, because X and some chat apps crop to slightly different ratios. The Social Media Image Resizer produces correctly sized versions.
Why a preview shows the wrong image or no image
- Relative URL:
/images/card.jpgdoesn't work; crawlers needhttps://example.com/images/card.jpg. - The image is blocked: a firewall, bot protection or hotlink rule may refuse requests from
facebookexternalhit,LinkedInBotorTwitterbot. The checker requests the image as a bot, so a block shows up here. - Tags added by JavaScript: social crawlers read the server's HTML and don't run scripts. If the checker can't see a tag that is visible in your browser's inspector, it is being injected client-side.
- og:url points to another page: Facebook follows og:url and shows that page's tags instead, a common bug when templates set og:url to the homepage.
- Cached preview: platforms keep the first version they fetched. Re-scrape after fixing.
Refreshing cached previews
- Facebook and Messenger: paste the URL into the Sharing Debugger and click “Scrape Again”.
- LinkedIn: paste the URL into the Post Inspector; it fetches a fresh copy.
- X: there is no public preview tool any more; previews update as the cache expires. Adding a harmless query parameter to the shared URL forces a new fetch.
- Slack: previews are cached per URL; a changed query string gives a fresh preview.
Setting Open Graph tags in common platforms
WordPress SEO plugins such as Yoast SEO and Rank Math output Open Graph tags and let you set a social image per post. Shopify themes include them in theme.liquid. In Next.js, the openGraph and twitter fields of the metadata export generate them. Whatever the platform, check one page per template here, and use the Meta Tag Checker for the search-facing tags.
Frequently asked questions
What are Open Graph tags?
Open Graph tags are meta tags in a page's <head>, such as og:title, og:description and og:image, that tell Facebook, LinkedIn, Slack, WhatsApp and other apps what to show when someone shares the link. Without them, each platform guesses, often picking the wrong image or text.
What size should an og:image be?
Use 1200 × 630 pixels, a 1.91:1 ratio, as a JPG, PNG or WebP under about 1 MB. Facebook shows images smaller than 600 pixels wide as small thumbnails and ignores images under 200 × 200. SVG is not supported by the major platforms.
I updated my Open Graph tags but Facebook still shows the old preview. Why?
Platforms cache link previews. Open Facebook's Sharing Debugger and click Scrape Again, or LinkedIn's Post Inspector, to force a fresh fetch. Changing the image file name also helps, because the old image may be cached separately.
Do I need Twitter Card tags if I already have Open Graph tags?
Only twitter:card is worth adding. X reads og:title, og:description and og:image when the twitter: equivalents are missing, but it needs twitter:card set to summary_large_image to show a full-width image.
Why does my link preview have no image?
The most common causes are a relative og:image URL, an image that returns an error or redirects to a login page, a firewall or hotlink protection blocking the platform's crawler, an unsupported format such as SVG, or tags added by JavaScript that crawlers don't run. The checker tests the image URL directly and reports which of these applies.
Do Open Graph tags help SEO?
Not directly; Google doesn't use them for ranking. They affect how links look when shared, which influences how many people click them, and shared links can bring visits and links back to the page.
Related Tools
- Meta Tag Checker — Check a page's title, meta description, robots directives, canonical, viewport and hreflang tags, with a Google result preview and a fix for each issue.
- Social Media Image Resizer — Upload one image and automatically generate optimized versions for Instagram, Facebook, LinkedIn, Pinterest, YouTube and X using fast local image processing.
- SEO Title Checker — Check a title tag for length, keyword position and truncation, preview it in desktop and mobile results, and get a 0–100 headline score.
- HTTP Header Checker — View raw HTTP response headers for every redirect hop and check security headers, caching, compression, HTTP version, CDN and X-Robots-Tag.
- llms.txt Generator & Validator — Create an llms.
- Schema Markup Generator — Generate valid JSON-LD structured data for 31 schema types — Article, Product, FAQ, Local Business, Organization, Review and more.