Open Graph and social preview problems: tags, images and URLs
Open Graph and Twitter Card tags control the title, text and image shown when a page is shared in a chat or on a social network. These checks look for missing tags, a missing or broken og:image, a wrong image size, weight or format, a relative image address, an og:url that differs from the canonical, identical tags everywhere and an invalid locale. Give each page its own tags.
How the problem happens
The tags are written once in the template, so every page shows the same preview. The image is a relative path, is too large for the platform, or a script adds the tags after the page loads.
Why social preview problems cost clicks and reach
When a link is pasted into a social network or a messenger, the service fetches the page and builds a preview card from a handful of tags. Whatever the card shows is what people judge before they decide to click. A share with a clear title, a short description and a good image can attract more clicks than a bare address or a card with a cropped or missing picture, even though it is the same page and the same link.
The tags are only read from the first HTML response, because the bots that build previews do not run JavaScript. If the tags are missing, the service guesses and often guesses badly. If the image address is relative, broken, too small, too heavy or in an unsupported format, no image is shown. If the same tags appear on every page, every share looks like the home page. If the shared URL in the tag differs from the canonical address, likes and shares are counted on the wrong URL. These are not ranking factors on their own, but they decide how much traffic a good page earns from the places where people actually share links.
How to check social previews by hand
Read the head of the page in the raw HTML, not in the browser's rendered view. Look for the title, description, image and URL tags, for the card type tag used by X, and for the site name and locale. Compare the title and description in those tags with the real page: they should describe this page, not the home page or another one. Check that the shared URL matches the canonical address.
Then test the image. Open its address directly: it must load without a login, the address must be a full one beginning with https, and the type should be JPEG, PNG, WebP or GIF. A good size is 1200 by 630 pixels, ratio about 1.91 to 1, and the file should stay well under 1 MB for a quick load, since limits differ by network (for example, X documents 5 MB and Facebook 8 MB). Finally, paste the link into the official debugging tools of the networks and into a test chat, and remember that they cache the old card, so use the refresh option after fixing. If the language code is wrong, check that it has the language and territory form such as en_US.
Copy-ready examples
The examples below show the markup, commands and settings that the checks in this family look for. Replace example.com and the sample values with your own, and test the result on a copy of the page before you publish it.
<link rel="canonical" href="https://example.com/guide/heat-pumps">
<meta property="og:type" content="article">
<meta property="og:site_name" content="Example">
<meta property="og:locale" content="en_US">
<meta property="og:url" content="https://example.com/guide/heat-pumps">
<meta property="og:title" content="Heat pumps: how to size one">
<meta property="og:description" content="A short guide to sizing a heat pump for a house.">
<meta property="og:image" content="https://example.com/img/heat-pumps-1200x630.jpg">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Heat pumps: how to size one">
<meta name="twitter:description" content="A short guide to sizing a heat pump for a house.">
<meta name="twitter:image" content="https://example.com/img/heat-pumps-1200x630.jpg">
# Check what a share bot receives
curl -s -A "facebookexternalhit/1.1" https://example.com/guide/heat-pumps | grep -i "og:"
curl -s -I https://example.com/img/heat-pumps-1200x630.jpg | grep -i -E "content-type|content-length"How to fix social previews in templates and the CMS
Generate the tags from the same fields as the page, in the server-rendered head, so each page gets its own title, description and image. Use the page title and meta description as a base and shorten them for the card if needed. Set the image per page, with a fallback to a good default only when a page has no picture of its own, and produce it at 1200 by 630 pixels with the important content in the middle, so a crop does not cut it.
Always use absolute https addresses for the image and the URL. Keep the shared URL equal to the canonical address. Host the image publicly on your own domain or a CDN, never behind a login or a signed link. Compress it, and serve a format the networks accept. Add the card type tag for X, the site name and a valid language and territory locale, and add the title, description and image tags for X where you want them to differ. In a CMS, use an SEO plugin or a field set that lets editors choose a social image per page, and test that templates do not reuse one set of tags everywhere. After any fix, refresh the cache in the sharing debuggers.
How RankDossier detects social preview problems
RankDossier reads the tags from the first HTML response, the way a share bot does. The checks in this family report missing Open Graph tags, a missing image, an image that does not load, an unsuitable image size, an image that is too heavy or in an unsupported format, a relative image address and an og:url that differs from the canonical. They also report identical social tags across many pages, a missing card type tag for X, missing recommended tags, an invalid locale and a social title or description that has nothing in common with the page.
Preview any page with the Open Graph checker and compare the title and description with the title and description tool. The technical SEO audit guide shows where social tags sit among other technical signals, the SEO checklist gives the order of fixes, and the AI citations guide explains why the information in the first HTML response matters beyond social networks.
Wrong and right
Wrong
<meta property="og:title" content="Home">
<meta property="og:image" content="/img/share.png">
<meta property="og:url" content="http://example.com/?ref=x">
Right
<meta property="og:title" content="Technical SEO audit: what it checks">
<meta property="og:description" content="A short summary of this page.">
<meta property="og:image" content="https://example.com/og/audit.jpg">
<meta property="og:url" content="https://example.com/audit">
<meta name="twitter:card" content="summary_large_image">
How to fix it
WordPress
Let your SEO plugin print the tags, set a default image and a separate image for important pages, and make sure the image address starts with https.
Next.js
Set openGraph and twitter in the metadata of each page, use full https addresses for images, and keep the og:url the same as the canonical.
export const metadata = {
openGraph: {
title: 'Technical SEO audit: what it checks',
url: 'https://example.com/audit',
images: ['https://example.com/og/audit.jpg'],
},
twitter: { card: 'summary_large_image' },
};
Nginx
Serve the image files with a correct content type and a short path that returns 200 without a redirect, then request the page and read its og tags.
curl -s https://example.com/audit | grep -i 'property="og:'
Check codes in this family
These checks belong to this family. Each code appears in the audit report with its own explanation and fix.
OG_MISSINGOpen Graph tags are missingOG_IMAGE_MISSINGog:image is missingOG_IMAGE_BROKENog:image does not loadOG_IMAGE_SIZEUnsuitable og:image sizeOG_IMAGE_HEAVYog:image is too heavyOG_IMAGE_MIMEog:image format is not supportedOG_IMAGE_RELATIVEog:image uses a relative URLOG_URL_MISMATCHog:url differs from canonicalOG_SAME_EVERYWHEREIdentical social tags on many pagesTWITTER_CARD_MISSINGtwitter:card is missingOG_RECOMMENDED_MISSINGRecommended social tags are missingOG_LOCALE_INVALIDInvalid og:localeOG_TITLE_MISMATCHSocial title does not match the page
Related check families
Read the full guide SEO checklist: what to check on a website, in order for the wider picture. Test one page for free with the Open Graph checker.
Check your own site
Enter a domain – the free pre-check reads up to 10 pages and shows how many types of problems it finds. You pay only if you want the full report.
Start the free pre-check