How to check Open Graph tags and link previews
An Open Graph checker reads the og: and twitter: tags in a page's HTML and shows the title, description and image a shared link will get. Facebook's Sharing Debugger and LinkedIn's Post Inspector are free, show their own preview and refresh their cache. To check many pages from code, our Meta Tags API returns every og:, twitter: and search tag with warnings for missing ones for $0.003 per page.
Try it free Meta Tags API — title, description, Open Graph, Twitter, $0.003 · $0.003 / call
The tags previews actually use
| Tag | Used for | Tip |
|---|---|---|
| og:title | Headline of the card | Falls back to the page title if missing |
| og:description | Text under the headline | Keep it short; long text is cut |
| og:image | The picture | Absolute https URL; 1200 by 630 px is a common size |
| og:url | The address the card points to | Match your canonical URL |
| twitter:card | Card style on X | summary_large_image for a big picture |
Free checkers, by where you share
None of these can see a page on localhost or behind a login, because their servers have to fetch it.
- Facebook Sharing Debugger (developers.facebook.com/tools/debug): shows the preview, lists tag problems and has a Scrape Again button to clear Facebook's cached copy.
- LinkedIn Post Inspector (linkedin.com/post-inspector): the same job for LinkedIn, including a refresh of its cache.
- opengraph.xyz and similar sites: one page, previews for several networks side by side.
- Slack, WhatsApp and Telegram: there's no public debugger. Paste the link into a private chat with yourself and look.
Checking tags in bulk
A debugger is one page at a time. Our Meta Tags API reads a page and returns open_graph and twitter objects with every tag it found, plus title and description with their lengths, canonical, robots meta, X-Robots-Tag, favicon, lang, viewport, hreflang links and the h1 headings. Warnings list what's missing or too long: no og:image, no twitter:card, a title over 60 characters, a noindex, several h1s.
It reads the HTML the server sends, like the social networks' own crawlers do. Tags added later by JavaScript aren't seen, and if your preview is blank that's often the reason. Pages that answer with an error status are refused and not charged.
curl -i -X POST https://iamai.markets/api/x402/services/4X3lMi8KFCbn \
-H "Content-Type: application/json" \
-d '{"url": "https://github.com"}'
# $0.003 per page via x402 (USDC on Base). result.open_graph, result.twitter, result.warnings
Why the preview didn't change
- Check the live tags with any checker. If they're right, the problem is a cache.
- Ask the network to fetch again: Scrape Again on Facebook, Post Inspector on LinkedIn.
- If the image still won't update, change its file name or add a version to its URL; networks cache images separately from text.
The product
Questions
Why is my og:image not showing?
Common causes: a relative URL, an image behind a login or blocked by robots.txt, a very large file, or tags added by JavaScript after load.
Do I need twitter: tags if I have og: tags?
X falls back to og:title, og:description and og:image, but it needs twitter:card to choose the card style.
Can your API check a page on localhost?
No. It refuses private addresses, so deploy to a public preview URL first.
Related
Updated 2026-12-02
