Slack Preview Broken After a CMS Change? Trace the Published Output
Follow a renamed CMS image field through the HTML response, image request and correction. Then trigger a signed check when the public page is ready.

A CMS editor can show the right campaign image while the published page has no og:image. The editor reads the content model; your page template may still read an old field. Slack receives the result of that template, so the useful debugging path is CMS record → published HTML → image response → Slack message.
Start with the exact public URL in the affected message. Check its source metadata before changing Slack settings or repeatedly pasting the link. If nothing changed in the CMS, use the general Slack unfurl checklist instead.
A field rename that breaks the published tags
Here is a controlled example. Before a content-model change, the record contains:
1{2 "title": "Autumn campaign",3 "socialImage": "https://example.test/og/autumn.jpg"4}The template selects entry.socialImage. After a migration, the CMS record uses shareImage:
1{2 "title": "Autumn campaign",3 "shareImage": "https://example.test/og/autumn-v2.jpg"4}The editor can display the new field. A template still reading socialImage gets no value. If it omits empty fields, both image tags disappear from the response even though the page itself returns HTTP 200.
Correct the field mapping in the template that generates the public metadata. After the corrected template is deployed, this example emits:
1<meta property="og:image" content="https://example.test/og/autumn-v2.jpg">2<meta name="twitter:image" content="https://example.test/og/autumn-v2.jpg">The .test URLs here are fictional fixtures. We ran six controlled variants through ShareScan's actual metadata validator using generated HTML and a local JPEG. These are validator results, not observed Slack cards:
| Controlled variant | HTML / image response | Validator result | What still needs checking |
|---|---|---|---|
| Original field and template | Image tags present; JPEG 200 | OK | Intended artwork and actual Slack card |
| Field renamed, old template | Image tags absent; page 200 | ERROR: missing OG and Twitter image fields | Correct the mapping |
| Corrected template | New image tags; JPEG 200 | OK | Public deployment and actual Slack card |
| New asset unavailable | Tags present; image 404 | ERROR: invalid image | Publish or repair the image asset |
| Public generic fallback | Valid generic image; JPEG 200 | OK | A human must identify the wrong artwork |
| Old build after publish event | Previous tags and valid image | OK | Compare the response with the expected content revision |
A structurally valid image can still be the wrong image. Save the expected campaign asset alongside the check; a green metadata result cannot establish editorial correctness.
Check the page that was actually published
Save the response without your CMS login. Replace the example URL with the real shared URL:
1PAGE_URL='https://www.example.com/campaign'2curl -sS -L --max-redirs 5 -D page-headers.txt -o page.html "$PAGE_URL"3rg -n -i 'og:|twitter:|canonical' page.htmlRead the final HTTP status and destination as well as the tags. A successful response could be a login page or an old build. Compare the image value, title and canonical with the intended record. An editor preview, draft route or unpublished asset does not establish what the public route serves.
Then request the exact image URL from the response:
1IMAGE_URL='https://www.example.com/og/autumn-v2.jpg'2curl -sS -L --max-redirs 5 -D image-headers.txt -o preview-image "$IMAGE_URL"3file preview-imageCheck the final status, content type and downloaded file. An HTML error page returned with status 200 is not a usable image. Use the missing-image walkthrough for access, redirects and image failures.
Trigger the check after the public output is ready
A CMS publish event can precede a static build, cache invalidation or asset publication. For that architecture, use the successful deployment event or a bounded readiness check that verifies the expected content version before requesting a scan. A fixed delay alone does not establish readiness.
For a server-rendered site, check that the public route actually sees the new record. For a template change, include representative URLs from every affected template; checking only the edited entry can miss a wider regression.
The useful sequence is:
- Receive and authenticate the CMS event in trusted server code.
- Map the changed content to its public URL or affected template sample.
- Wait for the intended public output using the site's deployment or readiness signal.
- Request a check and retain the returned job ID.
- Review the completed job, repair the field, template or image, and check again.
Send ShareScan the signed request it expects
CMS webhooks are a workspace integration. Create a workspace, verify the site's domain, and generate the secret in Integrations → CMS webhook. Normal plan quotas apply. The optional free report follow-up does not configure this integration.
ShareScan expects x-cms-timestamp and x-cms-signature. The signature is HMAC SHA-256 over timestamp.rawBody, prefixed with sha256=. Sign the exact string you send. A CMS provider's native webhook signature is not automatically this format; use a server-side adapter when necessary, validating the provider's incoming event before creating this request.
1import { createHmac } from 'node:crypto'2 3// Build the request in trusted server code after the public page is ready.4// This function does not send it. Keep the secret out of browser bundles.5export function buildCmsScanRequest({ secret, urls, releaseId, now = Date.now() }) {6 if (!secret?.trim() || !Array.isArray(urls) || urls.length === 0) {7 throw new Error('Provide a server secret and an explicit nonempty URL list')8 }9 const timestamp = String(Math.floor(now / 1000))10 const body = JSON.stringify({ environment: 'prod', urls, releaseId })11 const signature = createHmac('sha256', secret)12 .update(`${timestamp}.${body}`)13 .digest('hex')14 15 return {16 method: 'POST',17 headers: {18 'content-type': 'application/json',19 'x-cms-timestamp': timestamp,20 'x-cms-signature': `sha256=${signature}`,21 },22 body,23 }24}From your adapter, send the returned request options to the endpoint shown in the site's CMS webhook settings. Supply your secret from server environment configuration, an explicit list of public page URLs, and a content revision such as cms-example-42 as releaseId.
We checked this builder against ShareScan's actual signature verifier locally: the original request passed, adding a newline to the body failed, and a timestamp ten minutes old failed under the test's five-minute acceptance window. We did not send a production webhook, run its queue or send a Slack alert for this example.
A successful API response is 202 with a job ID: the check has been accepted, not completed. Omitting the URL list requests a full check, so keep the explicit list when you mean to check selected pages. A releaseId labels the release; it is not a job deduplication key. Deduplicate repeated CMS events in your adapter, and use bounded retries for rate limits or transient failures.
Connect the appropriate Slack channel separately if the team needs alerts. Inspect the completed job even when no alert appears: a generic but valid campaign image can pass structural validation. ShareScan's regression alerts concern changes into an error state, not an editorial review of every changed title or image.
Verify Slack after fixing the source
Use the Slack unfurl checklist for message settings and a fresh test context. Slack documents response caching around 30 minutes; a corrected source does not guarantee immediate replacement of an existing card. Slack crawler documentation.
Keep a short incident record: affected URL, content revision, deployed revision, returned image URL, image status, completed scan result and the Slack observation. This separates a publishing failure from a stale or suppressed unfurl.
For an occasional change, scan up to ten representative pages and choose optional free weekly follow-up by email or Slack. For checks tied to publishing, choose a paid workspace, verify the domain and configure the webhook; compare plans when URL coverage or check volume grows.
Related articles
- Slack Unfurl Debugger: Why Your Link Preview Is MissingRead article
- Link Preview Debugger: How to Find What Broke Before You ShareRead article
- Why Your og:image Is Not Showing in Slack, LinkedIn or XRead article
- How Ecommerce Teams Prevent Metadata RegressionsRead article
- Open Graph Image Size: The Practical 2026 GuideRead article
Put the guide into practice
Check the links your team shares.
Check preview images, titles and descriptions on up to 10 pages. Review the findings, then choose what to monitor.
No account or card. Choose weekly follow-ups by email or Slack after your scan.