Skip to content

How Pages Look When Shared ​

When a URL is pasted into social media or chat (Facebook, X, LINE, Slack, and so on), a preview card is built from information written in the page. The card information is fetched the first time the URL is shared and cached for several days. Set it correctly at launch or update, and the intended card with current information is what spreads.

Code examples are collapsed. The text is written so that you can decide without opening them.

Card Information (OGP) ​

OGP (Open Graph Protocol) is the common way to specify a card's title, description, image, and so on.

Properties for card information (OGP)
PropertyRole on the cardWhat to write
og:titleTitleBased on <title>; the trailing site name may be dropped
og:descriptionDescriptionA summary of the page; usually the same as meta description
og:imageImageAn image URL starting with https://
og:urlPage URLThe canonical URL (same value as <link rel="canonical">)
og:typePage typewebsite for the home page and similar, article for dated articles
Set og:title, og:image, og:url, and og:type MUSTPQ-R44
With all four in place, the card appears correctly with its image. og:image is not recognized as a relative path, so write a URL starting with https://.
Check: DOC-08DOC-08 Open Graph tags✕ NGJust a bare URLShared on social media, only the bare URL appears with no image or title✓ OKA card with image and titleShared on social media, a card with image, title and domain appears
Set og:description SHOULDPQ-R45
Summarize the page in roughly 120–160 characters.
Check:
Drop the trailing site name from og:title MAYPQ-R46
The card also shows the domain, so a shorter title is fine.
Code example: OGP
html
<meta property="og:title" content="Spring 2026 Product Update" />
<meta property="og:description" content="An overview of the new features in this update and the improvements to page speed." />
<meta property="og:image" content="https://example.com/assets/og/spring-update.jpg" />
<meta property="og:url" content="https://example.com/news/2026/spring-update" />
<meta property="og:type" content="article" />

X Cards ​

Without its own settings, X falls back to OGP but shows a small square-image card (summary). For a large-image card, set the following.

Set twitter:card MUSTPQ-R47
Use summary_large_image for pages with an image and summary for pages without one.
Set twitter:image SHOULDPQ-R48
Specify it explicitly instead of relying on og:image. You can also provide an image sized for X's card ratio.
Set twitter:title and twitter:description MAYPQ-R49
When omitted, og:title and og:description are used.
Code example: X card
html
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://example.com/assets/og/spring-update.jpg" />

The Card Image (og:image) ​

Make the image 1200×630px (aspect ratio 1.91:1) MUSTPQ-R50
This ratio displays uncropped on Facebook, X, LINE, and others. Never go below 200×200px.
Host the image where it opens directly, without login or access restrictions MUSTPQ-R51
Social media crawlers send no cookies or passwords. Use a URL that opens without a chain of redirects.
Do not use SVG for the image MUST NOTPQ-R52
Use JPEG or PNG. Almost every social media platform supports them, so the image appears everywhere.
Keep the file under 1 MB SHOULDPQ-R53
Lighter files let social media fetch them in time, so the card appears reliably. Aim for 300–500 KB or less.

Checking the Preview After Launch ​

After launch, check the preview with each service's tool. You catch syntax mistakes and stale caches before users see them.

Services for checking the preview
ServiceHow to check
FacebookEnter the URL in the Sharing Debugger, press "Scrape Again" to refresh the cache, and look at the card
LinkedInEnter the URL in the Post Inspector and look at the card
XPaste the URL into a draft post on a test account and confirm the large-image card appears