CMS Guide
HubSpot OG Images: Five Problems and How to Fix Them
How HubSpot CMS chooses the social sharing image for pages, landing pages and blog posts, five reasons a link shares with no image or an old one, and the featured image, Head HTML and template fixes, read from HubSpot's documentation and a live HubSpot page.
Problem 3: you changed the image and the old card still shows
Symptom
The featured image is new in HubSpot, and Facebook, LinkedIn, X or a chat app still shows the old card, or the old file.
Cause
Three layers keep a copy, and each needs its own clearing:
- The file itself. HubSpot's files documentation says that after you click Replace on a file, the old file may be cached for up to two hours. It suggests loading the file URL in a private browsing window to see whether the replacement is live.
- The rendered page. The pages I fetched answered with HubSpot cache headers (
x-hs-cache-config,x-hs-cache-control) andx-hs-prerendered. I found no HubSpot page that defines their values, so I will not give lifetimes. What the headers show is that the HTML comes from a cache layer that is not your browser. - The platform. Facebook caches images by URL and does not update them unless the URL changes, so replacing a file under the same name keeps the old card on Facebook even after HubSpot serves the new bytes.
The image I checked, a file under /hubfs/ on the blog's own domain, answered with cache-control: s-maxage=2592000, max-age=1209600, stale-while-revalidate=900, which is 30 days at the shared cache and 14 days in a browser. Those values belong to HubSpot's account and file, and I did not find them documented for yours. They do show that a file can be held for weeks, which is why a new file name is a better fix than waiting.
Fix
In this order: upload the new card as a new file with a new name (not Replace), set it as the featured image, publish or update the page, check the served head (see Verify your fix), then run the URL through the platform's debugger.
Detected by
A stale cache cannot be seen from the page alone. What you can see is the checker reporting an og:image that differs from the one in the editor. The audit's image_uncacheable finding is the opposite case, a card whose response forbids caching.
Problem 4: two sources print the same tag
Symptom
View source shows two og:image tags, or two og:title tags, and platforms disagree about which card to show.
Cause
HubSpot's own advice for a page with no card is to paste <meta property="og:image" content="IMG URL"> into the page's Head HTML field. That is a second place that can print the tag. Domain-level header code and a template can add more, and HubSpot's page on code snippets says code can be added at the page level and for every page on a domain. If the page also has a featured image, check whether both print.
HubSpot's troubleshooting article tells you to check that there is only one occurrence of each meta tag, because with several, social networks may not select the correct one. The checker reads the first og:image in the document, and Facebook's documentation does not say which of several it uses.
Fix
Decide which source owns each tag. For one page that needs its own card, the cleanest result is a featured image set to that card and nothing in Head HTML. If you do use Head HTML, switch off or remove the featured image on that page, then count tags in the source. Search the domain's header code, the template and the page's Head HTML for the string og:.
Detected by
No audit finding counts duplicate tags. You see it in the page source, with the curl command under Verify your fix, which prints one line per tag.
The step-by-step fix
Step 1: set a featured image on every page, landing page and post
Open the content from Content, then Website Pages, Landing Pages or Blog (HubSpot's navigation shows More first in some accounts). Click the content's name, click Settings, choose Featured image, turn on Enabled featured image and select the card. Add alt text. Publish or update.
Step 2: host the card where crawlers can read it
Uploaded files go to HubSpot's files tool, which serves them from HubSpot's content delivery network. By default the domain contains f.hubspotusercontent, and you can host files on a connected domain instead. The pages I read serve their images from /hubfs/ on their own domain. Three file settings matter for cards, all from HubSpot's file documentation:
- Visibility. Public is open and indexable. Public - noindex is open and tells search engines not to index it. Private requires a login or a temporary link. Use Public for a card. I did not test how social crawlers treat Public - noindex, and a Private file cannot work because the crawler has no login.
- File expiration date. A file can be set to expire. A card set to expire stops loading when it does, and every share that used it shows a broken image.
- The URL you copy. In Access and URLs the File URL dropdown lists the URL for each connected domain. Paste an absolute URL, not a relative path, into any tag you write by hand.
Step 3: add a tag by hand, only when the featured image is the wrong tool
HubSpot documents this for pages and landing pages without a card: open the content, click Settings, choose Advanced, and paste into the Head HTML field under Additional code snippets. The same field exists for blog posts. Editing options for head and footer HTML vary by subscription and content type, so a field you do not see may be a plan limit, not a mistake. A card for one page:
<meta property="og:image" content="https://your-site.com/hubfs/og/pricing-card.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta name="twitter:card" content="summary_large_image">
HubSpot's article suggests the twitter:card tag for X. Turn the featured image off for that page so only one og:image should print, then check the source to confirm.
Step 4: republish, clear, re-fetch
Publish or update the page. Where a replaced file is involved, allow for HubSpot's two hours or upload under a new name. Then verify as below.
Verify your fix
Read the head as a crawler does. Request the page with a crawler's user agent and print the tags. This is how I read the HubSpot pages above:
curl -sL -A 'facebookexternalhit/1.1' https://your-site.com/your-page/ \
| grep -oE '<meta (property|name)="(og|twitter):[^"]*" content="[^"]*"'
Count the og:image lines and open the URL on the one you expect. Run it on one page, one landing page and one blog post, because each can use a different template.
Check one URL. The checker scores the card (reachability, dimensions, file size, tags) and renders how it looks on each platform. Enter your page's URL. You can also check this guide's own card.
Audit the whole site. The site audit reads your sitemap, groups URLs into page templates and samples across them, so a template with no card, or a page type that shares one image, is reported as image_missing or image_shared for that template.
Refresh the platform's copy. Run the URL through the Facebook Sharing Debugger, covered in the Facebook link preview guide. LinkedIn and X have their own, covered in the LinkedIn guide and the X card guide. A debugger refreshes the platform's copy of the page. It does not change your page, and it does not refresh old shares.
Crawlers must be allowed in. HubSpot's article on link previews lists the user agents Facebook and X publish, facebookexternalhit and Twitterbot, for a robots.txt file, and says LinkedIn does not document its user agent, so use its Post Inspector to confirm it can read your page.
A card worth sharing from HubSpot
Once the tags are right, the card is what people see. HubSpot recommends 1.91:1 for link previews, and Facebook says to use at least 1200 by 630 pixels. A 1200 by 630 PNG meets both, and stays well below the 8 MB, 5 MB and 10 MB limits HubSpot lists for Facebook, X and LinkedIn.
A blog thumbnail is a poor card for most posts: it is cropped for the listing, and it has no title on it. A card made for sharing carries the page's title and your brand at the size the platforms want.
The properOG generator builds that card from your site's colours and fonts and gives you a clean 1200 by 630 PNG. Upload it to the files tool under a new name, set it as the featured image, and run the checks above.
Frequently Asked Questions
How do I set the social sharing image in HubSpot?
Set the featured image. Open the page, landing page or blog post, click Settings, choose Featured image, turn on Enabled featured image and select an image. HubSpot uses it for the og:image tag. For website pages and landing pages it must be set manually. For blog posts HubSpot sets it from the first image before the read more separator unless you choose another.
Why does my HubSpot page share with no image?
Usually no featured image is set. HubSpot fills in the title and meta description for pages and landing pages, but the featured image has to be chosen by hand. The other causes are the featured image switch being off, a custom template that omits standard_header_includes from its head, and a file that is private or expired.
Why does Facebook still show my old HubSpot image?
Facebook caches images by URL and keeps the old one unless the URL changes, and HubSpot says a replaced file can be cached for up to two hours. Upload the new card as a new file with a new name, set it as the featured image, update the page, then fetch the URL again in the Facebook Sharing Debugger.
Can I use a different image for sharing than the featured image?
HubSpot documents one route: paste an og:image meta tag into the page's Head HTML under Settings, Advanced. Do it on a page where the featured image is off, so the page prints one og:image, and check the served source. Head HTML options vary by subscription and content type.
Audit your site
Sample pages across every template in your sitemap and see which ones ship the wrong card, or none. Free, no account needed.
Related guides