Skip to content
Shareglow

Guides · Updated

Why your link preview is not showing on Slack, Discord or X

You paste a link and get a bare URL, a card with no image, or last month's title. Almost every case comes down to one of a few causes: the crawler cannot see your tags, cannot load your image, is blocked before it reaches the page, or is still showing a cached copy. This guide walks through them in the order worth checking.

How a link preview is built

When you paste a URL, the platform does not ask your browser for anything. Its own crawler (Slackbot-LinkExpanding for Slack, Discordbot for Discord, Twitterbot for X) requests the page from its servers, reads the Open Graph and Twitter Card tags in the HTML head, then downloads the image named in og:image. If any of those steps fails, you get a degraded card or none at all. So the first question is always: what does the crawler actually receive?

The fastest way to answer it is to fetch the page the way a crawler does. Our free OG scanner requests the URL server-side, lists every og:* and twitter:* tag it finds, checks that the image loads, and grades each problem with the exact tag to add.

1. The tags are added by JavaScript

Link-preview crawlers read the raw HTML response. They do not run your JavaScript bundle. If your site is a single-page app that sets the title and meta tags in the browser (a React, Vue or Svelte app without server rendering, for example), the crawler sees only the empty shell from index.html, and every page shares the same generic card or no card at all.

The fix is to put the tags into the HTML the server sends: use server-side rendering or static generation for pages you expect people to share, or prerender those routes at build time. The framework fix pages show where the tags go in Next.js, Nuxt, Astro, WordPress and Shopify.

Check your own link in seconds, free

2. The image URL is relative or unreachable

3. The crawler is blocked

A surprising number of broken previews are caused by security settings, not tags. Bot protection, a web application firewall or a country block can answer the crawler with a 403, a challenge page or a CAPTCHA. Your browser passes the check, so the page looks fine to you, but the crawler only sees the challenge.

Check robots.txt as well. X documents that Twitterbot follows robots.txt, so a Disallow rule that covers your pages or your image path stops the card. If you block unknown bots by user agent, allow the link-preview crawlers explicitly. Each platform page lists the user agent that platform sends.

4. Platform-specific causes

5. You are looking at a cached preview

Platforms cache what their crawler fetched, so a fix you deployed five minutes ago may not show up when you paste the same URL again. Facebook and LinkedIn have tools to force a fresh fetch; X, Slack and Discord do not, but a changed URL (for example with a ?v=2 query string) is treated as a new link. The cache refresh guide covers each platform step by step.

A five-minute checklist

  1. View the page source (not the inspector) and confirm og:title, og:description and og:image are there.
  2. Open the og:image URL in a private window and confirm it loads without a login.
  3. Confirm robots.txt and your firewall let the platform's crawler through.
  4. Add twitter:card if the link will be shared on X.
  5. Run the URL through the scanner and the preview simulator, then share a fresh URL to bypass the cache.

FAQ

Common questions

Why does the preview work on Facebook but not on X?

Each platform runs its own crawler with its own rules. X needs a twitter:card tag and follows robots.txt, so a page can pass on Facebook and still show no card on X.

Do I need both Open Graph and Twitter Card tags?

You need the Open Graph tags plus twitter:card. X reads og:title, og:description and og:image when the twitter:* versions are missing.

My single-page app shows the same preview for every page. Why?

Crawlers do not run JavaScript, so they only see the tags in the initial HTML. Render or prerender the tags on the server for every shareable route.