How to Preview Your Website's Social Media Share Appearance with OpDeck
If you want to preview how your website looks when shared on social media before it goes live — or before you send that link to thousands of followers — you're in the right place. This guide walks you through exactly how Open Graph tags and Twitter Cards control your link previews, how to check them quickly, and how to fix common issues so your content always looks polished when it appears in someone's feed.
Why Your Social Media Link Preview Matters More Than You Think
When someone shares a link on Facebook, LinkedIn, Twitter/X, or Slack, the platform doesn't just show a raw URL. It fetches metadata from your page and constructs a rich preview card — complete with a title, description, and thumbnail image. That preview is often the only thing a reader sees before deciding whether to click.
Studies consistently show that posts with compelling visual previews generate significantly more engagement than bare links. A blurry image, a truncated title, or a missing description can tank your click-through rate before your content even gets a chance. And yet, most website owners only discover broken previews after sharing — when it's too late to make a good first impression.
The fix is simple: preview how your website looks when shared on social media before you publish or share it. Let's get into exactly how to do that.
What Controls Your Social Media Preview?
Before you can fix or optimize your previews, you need to understand what generates them. Three main standards are at play:
Open Graph Protocol (OG Tags)
Developed by Facebook and now adopted by virtually every major platform, Open Graph tags are HTML <meta> elements placed in the <head> of your page. They explicitly tell social platforms what title, description, image, and URL to display.
The core OG tags look like this:
<head>
<meta property="og:title" content="How to Bake the Perfect Sourdough Loaf" />
<meta property="og:description" content="A step-by-step guide to making bakery-quality sourdough at home, from starter to scoring." />
<meta property="og:image" content="https://www.example.com/images/sourdough-hero.jpg" />
<meta property="og:url" content="https://www.example.com/sourdough-guide" />
<meta property="og:type" content="article" />
</head>
Without these tags, platforms fall back to guessing — pulling the page's <title> tag, the first paragraph of text, and whatever image they find first. That guesswork rarely produces a clean preview.
Twitter Cards
Twitter (now X) has its own metadata system called Twitter Cards. While Twitter will fall back to Open Graph tags if its own tags are missing, you get more control with dedicated Twitter Card tags:
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@YourHandle" />
<meta name="twitter:title" content="How to Bake the Perfect Sourdough Loaf" />
<meta name="twitter:description" content="Step-by-step sourdough guide from starter to scoring." />
<meta name="twitter:image" content="https://www.example.com/images/sourdough-hero.jpg" />
The twitter:card value determines the layout. summary_large_image gives you a wide banner image above the title — generally the most visually impactful option for blog posts and articles.
LinkedIn and Other Platforms
LinkedIn, Slack, Discord, WhatsApp, and iMessage all read Open Graph tags. If your OG tags are well-configured, you're covered across almost every platform without any additional work.
How to Preview How Your Website Looks When Shared on Social Media
Now for the practical part. There are several ways to check your social share preview, ranging from quick manual inspections to dedicated tools that give you a full visual render.
Method 1: Use OpDeck's Social Share Preview Tool
The fastest and most comprehensive way to preview how your website looks when shared on social media is to use OpDeck's Social Share Preview tool. Here's how to use it:
- Go to the tool at
https://www.opdeck.co/tools/social-share - Enter your page URL in the input field — this can be any publicly accessible URL
- Click Analyze and wait a few seconds while the tool fetches your page's metadata
- Review the rendered previews for Facebook/Open Graph, Twitter/X, and LinkedIn
- Check the raw tag output to see exactly what metadata was found (or missing)
The tool renders what your link will actually look like as a card in each platform's feed — not just a list of raw tag values. This matters because a title might look fine in code but get truncated in the actual card layout. You can see at a glance whether your image dimensions are correct, whether your title fits within the character limit, and whether your description adds enough context to drive clicks.
What makes this particularly useful is that you can test any URL — your own site, a competitor's page, or a staging environment — without needing to log into any social platform or create a developer account.
Method 2: Use Platform-Specific Debugging Tools
Each major platform offers its own official validator:
Facebook Sharing Debugger
- URL:
https://developers.facebook.com/tools/debug/ - Requires a Facebook account
- Shows exactly how Facebook parses your OG tags
- Has a "Scrape Again" button to force-refresh Facebook's cache after you make changes
Twitter Card Validator
- URL:
https://cards-dev.twitter.com/validator - Requires a Twitter/X account
- Shows a live preview of how your card will render in a tweet
- Note: Twitter has occasionally restricted access to this tool for non-developer accounts
LinkedIn Post Inspector
- URL:
https://www.linkedin.com/post-inspector/ - Requires a LinkedIn account
- Useful specifically for checking how LinkedIn renders your preview
These tools are valuable but require separate logins and switching between multiple tabs. For a quick all-in-one check, a dedicated tool like OpDeck's is more efficient.
Method 3: Inspect the Raw HTML Manually
If you're comfortable with browser developer tools, you can inspect your page's <head> section directly:
- Open your page in a browser
- Right-click anywhere and select Inspect (or press
F12) - In the Elements panel, find the
<head>tag and expand it - Look for
<meta property="og:*">and<meta name="twitter:*">tags
Alternatively, use curl to fetch just the head section from the command line:
curl -s "https://www.example.com/your-page" | grep -i 'og:\|twitter:'
This outputs all matching meta tags so you can verify what's actually being served. This is especially useful when you suspect a caching issue — you can see the live server response rather than a cached version in your browser.
Common Social Share Preview Problems (and How to Fix Them)
Problem 1: No Preview Image Appears
Cause: The og:image tag is missing, the image URL is broken, or the image uses a relative path instead of an absolute URL.
Fix: Always use a full absolute URL for your OG image:
<!-- Wrong -->
<meta property="og:image" content="/images/hero.jpg" />
<!-- Correct -->
<meta property="og:image" content="https://www.example.com/images/hero.jpg" />
Also verify the image is publicly accessible. Images behind authentication or on staging servers that aren't publicly reachable won't load for social platform crawlers.
Problem 2: Wrong Image Dimensions
Each platform has preferred image dimensions. Using the wrong size results in cropped, stretched, or blurry previews.
| Platform | Recommended Image Size |
|---|---|
| Facebook / Open Graph | 1200 × 630 px |
Twitter summary_large_image |
1200 × 628 px |
| 1200 × 627 px | |
Twitter summary (small card) |
800 × 418 px |
A 1200 × 630 px image works well across all platforms. Keep important content (text, logos, faces) away from the edges to avoid cropping.
Problem 3: Title or Description Gets Truncated
Cause: Your og:title or og:description exceeds the platform's display limit.
Recommended limits:
og:title: 60–70 charactersog:description: 155–200 characters
Fix: Write your OG title and description specifically for social sharing — they don't need to match your page's <title> or meta description exactly. Prioritize the most compelling information within the character limits.
Problem 4: Old Preview Showing After You Updated Tags
Social platforms aggressively cache link previews. Even after you fix your OG tags, the old preview can persist for days.
Fix: Use the platform's cache-clearing tools:
- Facebook: Use the Sharing Debugger and click "Scrape Again"
- LinkedIn: Use the Post Inspector and click "Inspect"
- Twitter: Re-entering the URL in the Card Validator usually triggers a re-fetch
For Facebook specifically, you can also append a query string to your URL (e.g., ?v=2) to force it to treat the URL as new — though this changes the canonical URL, so use it carefully.
Problem 5: The Wrong Page Gets Scraped
Cause: Your site has redirect chains, canonical tag mismatches, or the og:url tag points to a different page than the one being shared.
Fix: Make sure og:url matches the canonical URL of the page:
<meta property="og:url" content="https://www.example.com/sourdough-guide" />
<link rel="canonical" href="https://www.example.com/sourdough-guide" />
Setting Up Open Graph Tags in Popular Platforms
WordPress
If you're using WordPress, the easiest approach is a plugin:
- Yoast SEO: Go to the post editor → Yoast SEO panel → Social tab. Set custom OG title, description, and image per post.
- Rank Math: Similar interface under the "Social" section in the post editor.
- All in One SEO: Provides per-post social settings under the "Social" tab.
All three plugins also allow global defaults for pages that don't have custom settings.
Next.js
In Next.js 13+ with the App Router, use the metadata export:
// app/sourdough-guide/page.js
export const metadata = {
title: 'How to Bake the Perfect Sourdough Loaf',
openGraph: {
title: 'How to Bake the Perfect Sourdough Loaf',
description: 'Step-by-step sourdough guide from starter to scoring.',
url: 'https://www.example.com/sourdough-guide',
images: [
{
url: 'https://www.example.com/images/sourdough-hero.jpg',
width: 1200,
height: 630,
alt: 'A freshly baked sourdough loaf on a wooden board',
},
],
type: 'article',
},
twitter: {
card: 'summary_large_image',
title: 'How to Bake the Perfect Sourdough Loaf',
description: 'Step-by-step sourdough guide from starter to scoring.',
images: ['https://www.example.com/images/sourdough-hero.jpg'],
},
};
Static HTML Sites
Add the tags directly to your <head> section as shown in the earlier examples. If you're generating pages with a static site generator like Jekyll or Hugo, use template variables to populate OG tags dynamically from your page's front matter.
Best Practices for Social Share Previews
Create dedicated OG images. Don't just use your hero image. Design a specific 1200 × 630 px graphic for each important page — include your brand colors, the article title as text, and your logo. Tools like Canva, Figma, or even automated solutions like Cloudinary's image transformation API make this scalable.
Write OG descriptions as calls to action. Your og:description is prime real estate. Instead of summarizing the content, tell the reader what they'll gain: "Follow these 7 steps and you'll have bakery-quality sourdough on your first try."
Test before every major share. Any time you publish a new post, update a landing page, or launch a campaign, run a quick check with OpDeck's Social Share Preview tool before sharing the URL anywhere. It takes 10 seconds and can save you from a broken preview reaching thousands of people.
Set sensible defaults. Configure OG tags at the site level so that even pages without custom settings get a reasonable fallback title, description, and image — typically your homepage's branding.
Don't forget article-specific tags. For blog posts and news articles, add og:type set to article along with article:published_time and article:author. These provide richer context to platforms that support them.
Checking Social Previews as Part of a Broader Site Audit
Social share previews are one piece of a larger on-page optimization puzzle. While you're checking your OG tags, it's worth auditing related elements:
- SEO metadata — your
<title>and meta description affect both search results and social fallbacks - Structured data — JSON-LD markup can enhance how your content appears in Google Search and rich results
- Page performance — slow pages frustrate users who click through from social links
OpDeck's Social Share Preview tool focuses specifically on the social metadata layer, giving you a clear visual render of exactly what your link preview looks like across platforms without any account setup or platform switching.
Conclusion
Knowing how to preview how your website looks when shared on social media is a straightforward but high-impact skill. A well-configured social preview builds trust, drives clicks, and makes your content look professional the moment it lands in someone's feed. The process boils down to three steps: add proper Open Graph and Twitter Card tags, verify them with a preview tool before sharing, and fix any issues with image dimensions, character limits, or caching.
The quickest way to get this done is with OpDeck's Social Share Preview tool — paste in your URL, see exactly how your link card will render on Facebook, Twitter/X, and LinkedIn, and catch any problems before they go public. Head over to OpDeck and run your first check now.
Try these tools
SEO Audit
Comprehensive SEO analysis to improve your search engine rankings
Social Meta Audit
Preview how your URL appears when shared on social media and audit Open Graph tags
AI Content Analyzer
Analyze content quality, detect AI-generated text, and get improvement suggestions
JSON-LD Generator
Generate JSON-LD structured data for your web pages using AI