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.
og:image must be an absolute URL, including https://. A path like /images/card.png means nothing to a crawler that is not on your site.
The image must be public. Images behind a login, a signed URL that has expired, or a staging host with basic auth will not load.
The image must return 200 with an image content type. A redirect to an HTML error page looks like a valid URL in your tags but produces an empty card.
Keep the file small. Messaging apps are stricter than social networks: WhatsApp, for example, tends to drop preview images larger than about 300 KB.
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
X: a card needs a twitter:card tag (use summary_large_image for a wide image). X falls back to og:title, og:description and og:image for the other fields, so you do not have to duplicate them.
Slack: workspace admins can turn off link previews for some or all domains, and anyone can remove a preview from a message. Test in a workspace you control before assuming the tags are wrong.
Discord: embeds need the Embed Links permission in the channel, and each user can switch off link previews in their own settings. If one person sees the embed and another does not, it is a setting, not your page.
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
View the page source (not the inspector) and confirm og:title, og:description and og:image are there.
Open the og:image URL in a private window and confirm it loads without a login.
Confirm robots.txt and your firewall let the platform's crawler through.
Add twitter:card if the link will be shared on X.
Run the URL through the scanner and the preview simulator, then share a fresh URL to bypass the cache.
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.