Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The reliable way to create a link preview is to publish page-specific Open Graph metadata, add X card tags, serve a reachable image, and then inspect the live URL on each destination. A social card is assembled by a platform crawler; your tags are input, not a guarantee that Facebook, LinkedIn, X or another service will render identical fields or crops.

This guide gives working metadata, visual examples, image specifications, platform checks and fixes for missing or stale previews.

What a social media card contains

When someone shares a URL, the destination fetches the page and builds a compact card. Depending on the service and layout, it may show a title, description, representative image, domain or the shared URL. The page owner normally controls the suggested values through metadata in the document head.

The Open Graph protocol defines four basic properties: og:title, og:type, og:image and og:url. og:description is optional but useful, and og:image:alt can describe the image for accessibility. Use the canonical page URL in og:url so crawlers can associate variants with one address. See the Open Graph protocol.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

A shared metadata baseline

Place this in the <head> of every public page, replacing the example values with that page’s own content. The X fields provide an explicit large-image card request while the Open Graph values remain useful to other crawlers.

<meta property="og:type" content="website">
<meta property="og:url" content="https://example.com/page">
<meta property="og:title" content="A clear page-specific headline">
<meta property="og:description" content="One concise sentence explaining what the reader will find.">
<meta property="og:image" content="https://example.com/images/social-card.jpg">
<meta property="og:image:alt" content="Short description of the social-card image">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="https://example.com/page">
<meta name="twitter:title" content="A clear page-specific headline">
<meta name="twitter:description" content="One concise sentence explaining what the reader will find.">
<meta name="twitter:image" content="https://example.com/images/social-card.jpg">

This field combination follows the practical sample in HubSpot’s implementation guide. If you declare multiple values for one Open Graph property, the protocol gives preference to the first tag, so remove stale duplicates rather than relying on order.

Choose values per page

  • Title: write a readable headline that makes sense without the site’s navigation or template name.
  • Description: state what the visitor will get in one sentence; do not paste a keyword list.
  • Type: use website for a general landing page and choose a more specific Open Graph type only when your implementation supports it.
  • URL: use the final HTTPS canonical URL, not a tracking or redirect URL.
  • Image: provide an absolute, publicly fetchable HTTPS URL. Keep the image relevant to the page.
  • Alt text: describe the meaningful subject of the image rather than repeating the headline.

Four social media card examples

1. Article card

Use a representative photograph or illustration and a page-specific headline. Keep text on the artwork short because the platform may also print the title below it. For example, an article about home networking could use a router photograph, the title “How to Fix Intermittent Wi‑Fi,” and a description that promises the troubleshooting scope.

2. Product or landing page

Show the recognizable product, service or brand cue. Let the metadata supply the offer and context: the image can establish identity while the title explains the page’s action or benefit. Avoid placing a paragraph of pricing or terms inside the image, where it may be cropped.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

3. Documentation page

A docs card works well with a logo or wordmark, a large package or project name, a brief tagline and a restrained background. Great Docs’ social-card guide recommends simple composition, high contrast and checking the result at small size.

4. No custom image

Still publish useful title and description tags. Great Docs documents a text-oriented summary card when its implementation has no image and a large-image card when one is configured; that is behavior of that implementation, not a universal promise for every platform.

Image dimensions, file size and composition

A practical starting canvas is 1200 × 630 pixels (1.91:1). Great Docs recommends that size, and HubSpot lists the same ratio for Facebook and LinkedIn and for link-post featured images on X. X photo posts can use a 16:9 treatment, so do not confuse that format with an X link preview. These are recommendations, not guarantees against a destination’s crop.

Destination or guidance Ratio or limit How to use the number
General starting point 1200 × 630, 1.91:1 Use for a reusable link-preview master.
Facebook (HubSpot guidance) 1.91:1; maximum 8 MB Keep the file below the stated limit and expect platform-specific cropping.
LinkedIn (HubSpot guidance) 1.91:1; maximum 10 MB Validate the actual post preview.
X link-post image (HubSpot guidance) 1.91:1; maximum 5 MB This differs from X photo-post guidance.
X GIF (HubSpot guidance) Maximum 15 MB Applies to the cited GIF limit, not every image type.
Great Docs recommendation Below 1 MB, ideally below 300 KB A performance-oriented target for its documented social-card workflow.

The limits and validators can change. Check the destination’s current requirements before a major launch. For small feed renderings, use high contrast, a simple focal point and large type. Great Docs suggests checking at 300 × 157 pixels and keeping important content in a central safe area of the 1200 × 630 composition. A logo, short title or single visual subject usually survives better than dense copy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Implement cards in a site or CMS

  1. Generate tags from page data. Your template should output a different title, description, canonical URL and image for each route. Great Docs describes this as tags “generated per-page with the correct title, description, and URL for each page.”
  2. Put tags in the initial head. Do not depend on a client-side script that runs only after interaction; crawlers may fetch the raw response.
  3. Use absolute URLs. The page and image should resolve over HTTPS without a login, cookie wall or JavaScript-only redirect.
  4. Allow the relevant crawlers. Review robots.txt, firewall rules, authentication and rate limits. HubSpot’s guide includes example user-agent entries for Facebook and X.
  5. Deploy, then inspect the live URL. Verify the HTML returned from production rather than only viewing a local preview.

Why Facebook, LinkedIn and X show different cards

Each destination chooses its own fields, priority rules, image treatment and layout. A 2020 controlled study of 20 popular social platforms documented 14 distinct link-preview layouts; the result is historical evidence, not a current specification for every service. A platform can omit a description, reposition the domain, select a different image crop or apply a small-card treatment even when your metadata is identical.

Use common Open Graph values as the baseline and add destination-specific fields where documented. Compare these aspects when reviewing a preview:

  • small summary versus large-image card;
  • which title, description and domain fields are visible;
  • image ratio, crop and maximum file size;
  • whether the card came from shared page metadata or was edited in the post composer;
  • the crawler and re-fetch process used by that destination.

Never promise that one tag set produces the same card everywhere.

Preview and debug the live URL

  1. Inspect the response. View source or fetch the production URL and confirm one correct value for each key tag. Check that the image URL returns an image with a successful response.
  2. Check crawler access. Ensure robots.txt, WAF rules, authentication and geographic restrictions do not block the platform’s bot or the image host.
  3. Use destination inspectors. HubSpot lists Facebook’s Sharing Debugger, an X card validator and LinkedIn’s Post Inspector. Great Docs also lists a general Open Graph debugger for multi-platform checks.
  4. Request a re-fetch where offered. A validator may provide a scrape or refresh action. There is no universal cache duration, so do not assume a fixed number of minutes or hours.
  5. Compare the fetched values with your source. If the inspector sees old data, check redirects, CDN variants and duplicate tags before changing the design.

Common failures and fixes

Image is missing

Usually the image URL is relative, blocked, non-HTTPS, protected by authentication, returns an error, or is too large for the destination. Replace it with a direct public URL, verify the response and reduce the file within the destination’s current limit.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Old title or image remains

The platform may have cached an earlier fetch. Confirm the live head first, then run the destination’s inspector and use its re-fetch control if available. Remove duplicate or conflicting tags; the first Open Graph value can win.

Description is absent

Some layouts omit descriptions by design. Ensure og:description and the X description are present, concise and server-rendered, then inspect the actual destination rather than inferring behavior from another platform.

Wrong page appears

Check og:url, canonical redirects and query-string variants. Set one canonical URL and make the metadata consistent across the final response.

Preview works locally but not after publishing

Production may differ in robots rules, firewall policy, DNS, TLS, authentication or image hosting. Test from the public URL and review server logs for crawler requests.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server for developers. It can capture a URL as PNG, JPEG, WebP or PDF, and it is useful when you need a rendered visual check in an automated workflow instead of configuring a headless browser. Before capture it accepts the cookie or consent banner like a visitor and removes more than 60 known consent platforms, newsletter popups and chat widgets; each step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads and cache hits cost nothing, and the response reports the result with X-Page-Verdict and X-Billed headers.

One GET request is enough:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the full parameter list in the ScreenshotNeo documentation. The same call from Python is:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

And in Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
const image = Buffer.from(await res.arrayBuffer());
await import('node:fs/promises').then(fs => fs.writeFile('shot.webp', image));

For AI workflows, its MCP server provides take_screenshot, get_page_info and capture_pdf tools for Claude, Cursor and other MCP clients. Features include full-page and CSS-selector captures, device presets, dark mode, custom CSS or JavaScript, waits, request blocking, headers and cookies, geolocation, resizing, caching, signed links, asynchronous webhooks, bulk capture of up to 100 URLs per call, usage reporting and an OpenAPI specification. Every feature is on every plan: 1,000 shots per month are free with no card; paid plans start at $5 for 3,000 shots. Create a free ScreenshotNeo account.

Operational notes for reliable previews

  • Keep metadata generation deterministic so the same URL does not alternate titles or images.
  • Use a stable image URL or update its filename when the artwork changes; this makes cache diagnosis easier.
  • Compress images while preserving legibility at feed size.
  • Validate the most important destinations after template, CDN, redirect or image-host changes.
  • Treat platform limits and rendering behavior as volatile and recheck current documentation before a campaign.

Frequently Asked Questions

Do I need both Open Graph and X tags?

Open Graph is the broad baseline; explicit X card, title, description and image tags let X receive the card type and values you intend. Keeping both avoids relying on undocumented fallback behavior.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can I force a platform to use a particular crop?

No. You can provide a suitable ratio, safe-area composition and image metadata, but the destination controls its crop and layout.

How long does a preview cache last?

There is no universal refresh interval established for all destinations. Confirm the live HTML and use the destination’s inspector or re-fetch control when available.

What should I do if a page cannot have a custom image?

Publish accurate title and description metadata and verify the resulting text-oriented treatment in the target inspector; image behavior differs by implementation and platform.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.