How to Test OG Images: Every Tool & Method (2026 Guide)
You've added Open Graph tags to your site. But how do you know they actually work? Here's every tool and method to test your OG images before sharing.
Contents
Why You Need to Test OG Images
Open Graph images are what people see when your link gets shared on social media, Slack, Discord, or messaging apps. A broken or missing OG image means your content looks unprofessional โ or worse, invisible.
The problem? Each platform has its own quirks:
- Facebook caches OG data aggressively (sometimes for days)
- Twitter/X requires specific
twitter:cardmeta tags - LinkedIn has its own crawler with different caching behavior
- Discord and Slack fetch OG data in real-time but have size limits
Testing before you share saves you from embarrassing broken previews.
The Quick Method (30 Seconds)
The fastest way to test your OG tags is with a multi-platform checker that validates everything at once:
- Go to OGMagic OG Checker
- Paste your URL
- Get a score, see all your tags, and preview how your link looks on social media
It checks for og:title, og:description, og:image, Twitter card tags, image dimensions, and more โ all in one place.
๐ก Bookmark the shareable URL: ogmagic.dev/tools/og-checker?url=yoursite.com โ great for sharing audit results with your team.
Facebook Sharing Debugger
Facebook's official tool lets you see exactly what Facebook's crawler sees when it fetches your page.
How to use it
- Go to developers.facebook.com/tools/debug
- Paste your URL and click "Debug"
- Review the scraped properties
Key things to check
- og:image โ Is it the right image? Check dimensions (1200ร630 is ideal)
- og:title โ Is it the correct title? Not the page's
<title>, but the OG-specific one - Response Code โ Should be 200. Redirects can cause issues
- Time Scraped โ Shows when Facebook last cached the data
๐ก Click "Scrape Again" to force Facebook to re-fetch your page. This clears the cache for that URL. You might need to click it twice โ once to clear, once to re-fetch.
Twitter/X Card Validator
Twitter deprecated their official Card Validator tool in 2022, but you can still test Twitter cards:
Method 1: Use a third-party validator
Our Twitter Card Preview tool shows exactly how your link will appear in a tweet โ including the image, title, description, and domain.
Method 2: Tweet it (with a private account)
The most reliable test is to actually tweet the URL from a private/alt account. Twitter will show the real card preview. Delete the tweet after testing.
Twitter-specific requirements
- Requires
twitter:cardmeta tag (usesummary_large_imagefor big images) - Falls back to
og:imageiftwitter:imageisn't set - Image must be under 5MB
- Minimum size: 144ร144 for
summary, 300ร157 forsummary_large_image
Skip the manual testing
OGMagic generates perfect OG images via API โ always the right size, always valid tags.
LinkedIn Post Inspector
LinkedIn has its own post inspector tool for testing how links appear in posts.
- Go to linkedin.com/post-inspector (requires login)
- Paste your URL
- See the preview and any warnings
Or use our LinkedIn Preview tool โ no login required.
LinkedIn-specific gotchas
- LinkedIn caches previews for ~7 days
- Use the Post Inspector to force a re-scrape
- Recommended image size: 1200ร627 (slightly different from the 1200ร630 standard)
- LinkedIn truncates titles longer than ~70 characters
Discord & Slack Previews
Discord and Slack both generate rich previews from OG tags, but there's no official testing tool for either. Here's how to test:
Discord
- Paste the URL in a private Discord server or DM
- Discord fetches OG data in real-time (no long-term cache)
- Supports
og:image,og:title,og:description, andog:site_name - Images display at max 400ร300 in the embed
Slack
- Paste the URL in any Slack channel
- Slack caches unfurled links โ to re-fetch, you can remove the message and post it again
- Respects
og:image,og:title,og:description
Multi-Platform Testing Tools
Instead of testing on each platform separately, use a tool that checks everything at once:
| Tool | Platforms | Free |
|---|---|---|
| OGMagic OG Checker | All (OG + Twitter + score) | โ No signup |
| opengraph.xyz | Facebook, Twitter, LinkedIn | Limited free |
| metatags.io | Google, Facebook, Twitter | โ |
| socialsharepreview.com | Facebook, Twitter, LinkedIn | โ |
Testing with cURL (Developer Method)
Want to see exactly what crawlers see? Fetch your page's HTML and check the meta tags directly:
# Fetch and show all OG tags
curl -s https://yoursite.com | grep -i 'property="og:\|name="twitter:'
# Check if og:image URL returns a valid image
curl -sI "$(curl -s https://yoursite.com | grep 'og:image' | head -1 | grep -o 'content="[^"]*"' | cut -d'"' -f2)" | head -5This is useful for debugging in CI/CD pipelines or when you want to check many URLs at once.
Common Issues & Fixes
Image not updating after changes
Social platforms cache OG data aggressively. To force a refresh:
- Facebook: Use the Sharing Debugger and click "Scrape Again"
- Twitter: Add a dummy query param (
?v=2) to bust the cache - LinkedIn: Use the Post Inspector to re-scrape
- Slack: Delete and re-post the message
Image shows on some platforms but not others
Usually means you have og:image but not twitter:image (or vice versa). Add both:
<meta property="og:image" content="https://yoursite.com/og.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://yoursite.com/og.png" />Image looks blurry or cropped
Use 1200ร630 pixels โ this is the universal safe size that works well on every platform. Keep important content away from the edges (platforms crop differently).
OG tags not being detected
Common causes:
- Tags are outside
<head>โ they must be inside the head element - JavaScript-rendered tags โ crawlers don't execute JS. Use SSR or static HTML
- Relative URLs โ always use absolute URLs for
og:image(https://...) - Missing
contentattribute โ check for typos in your HTML
For a deeper dive, check our guide on fixing OG images that aren't showing.
Automate It: Never Worry Again
The best way to avoid OG image issues? Generate them automatically with an API. Instead of manually designing and uploading images, use a URL-based approach:
<meta property="og:image"
content="https://ogmagic.dev/api/og?title=Your+Page+Title&template=gradient-mesh" />Benefits of API-generated OG images:
- Always valid โ correct dimensions, format, and file size every time
- Dynamic โ title and description update automatically from your content
- Consistent โ same professional look across all your pages
- Zero maintenance โ no manual design work per page
Skip the manual testing
OGMagic generates perfect OG images via API โ always the right size, always valid tags.
Related Articles
Get OG tips & product updates
Join our newsletter for Open Graph best practices, new template releases, and exclusive discounts. No spam, unsubscribe anytime.
๐ We respect your inbox. No spam, ever.