HomeGuidesHow to Debug & Preview Open Graph (OG) Meta Tags for Social Sharing
Developer & SEO5 min readUpdated 2026-11-04

How to Debug & Preview Open Graph (OG) Meta Tags for Social Sharing

Ensure your blog posts, articles, and products render stunning link preview cards on Twitter, LinkedIn, iMessage, and Facebook.

Need to do this immediately?

Use our free, private client-side browser tool with zero installation.

Launch Open Graph Previewer
When links are shared on social platforms like Twitter/X, LinkedIn, Slack, and WhatsApp, social crawler bots scrape the destination URL's HTML <head> for Open Graph protocol meta tags. If tags are missing, broken, or improperly sized, your link appears as plain unclickable text.

The Essential Open Graph Meta Tags Every Page Needs

1. og:title: The bold headline displayed on the social preview card (optimal length: 40 to 60 characters).

2. og:description: A concise 1-2 sentence hook summarizing the article (under 160 characters).

3. og:image: The high-resolution preview image. The industry standard resolution is 1200x630 pixels (1.91:1 aspect ratio) for crisp display on high-DPI displays.

4. twitter:card: Set to 'summary_large_image' to ensure Twitter/X displays a full-bleed banner rather than a tiny square thumbnail.

Common Open Graph Pitfalls: Caching and Relative URLs

A widespread bug among frontend developers is supplying relative paths like '/og-image.png' instead of fully-qualified absolute URLs ('https://example.com/og-image.png'). External social crawlers cannot resolve relative paths.

Furthermore, platforms like LinkedIn and Facebook aggressively cache OG images for weeks. If you update your thumbnail, you must verify the new image URL is reflected.

Pro Tip:Always keep text within the safe central 80% zone of your 1200x630 image to avoid cropping on mobile social feeds.

Step-by-Step Tutorial

1

Input Page Metadata

Enter your page title, description, website URL, and image link into the previewer.

2

Simulate Across Social Networks

Review real-time live preview cards for Twitter/X, Facebook, LinkedIn, and iMessage.

3

Copy Production HTML Tags

Copy clean, verified <meta property='og:...'> tags directly into your site layout head.

Ready to Try It Yourself?

DocSwift processes everything directly on your device. Fast, safe, and completely free forever.

How helpful was this guide?

Rated 4.9 / 5 by 3,420+ users worldwide

Share with Colleagues & Friends

Help others protect their document privacy

Frequently Asked Questions

What is the best image format for Open Graph tags?

PNG or WebP images saved under 1MB are ideal. JPEG is also widely supported for photographic graphics.

Why does my preview card show up blank on WhatsApp?

WhatsApp requires images to be under 300KB and strictly over HTTPS with valid SSL certificates.