Link preview not showing? Debug it the way a crawler sees your page

Why a link card comes out empty on Facebook, Zalo or Telegram while the page looks fine: redirects, robots.txt, bot firewalls, image limits and broken charsets.

Link preview not showing? Debug it the way a crawler sees your page
On this page

You paste a link into Messenger or Zalo and get a bare URL, a grey box, or the title of your login page. You open the same link in your browser and everything looks right. Both observations are true, because the card was not built by your browser. It was built by a small crawler that sees a different, much plainer version of your site.

This article walks through what that crawler does, then gives a debugging order: the response, the access rules, the image, the text, and finally the cache. Each step comes with the numbers that decide pass or fail. You can follow along with the link preview checker, which fetches a page the way these crawlers do and lists what it finds.

What a preview crawler actually does

When you send a link, the app's server (not your phone) fetches it. Facebook identifies itself as facebookexternalhit/1.1, Telegram as TelegramBot, X as Twitterbot, LinkedIn as LinkedInBot. Zalo does not document its crawler's name, which matters later.

The crawler does roughly this:

  1. Requests the URL and follows redirects.
  2. Reads the HTML of the response. It does not run your JavaScript.
  3. Pulls og:title, og:description, og:image and friends from the <head>, falling back to <title> and the meta description.
  4. Makes a second request for the image, checks its size and type.
  5. Stores the result, often for days.

Point 2 explains a whole class of bugs. A single-page app that sets its tags with JavaScript serves the crawler the raw index.html, so every link on the site previews as "Vite App" or "React App" with no picture. The fix is to put the tags in the HTML the server sends: server rendering, prerendering, or a static build. Checking in your browser's dev tools does not reveal this, because the Elements panel shows the page after scripts ran. View the page source instead, or paste it into the checker's HTML mode.

Step 1: the response the crawler gets

Start with the HTTP response, because nothing else matters if it fails.

  • Status. The crawler needs a 200. A 404, 403 or 500 gives no card, and a 401 usually means the page sits behind a login.
  • Redirects. These are allowed, but each hop costs time, and some hops change what the crawler lands on. A typical chain: http://example.com/sale → 301 https://example.com/sale → 301 https://www.example.com/sale → 302 https://www.example.com/vi/sale. That is three hops before any HTML. Worse is a 302 to /login?next=/sale, which produces a card for your login page. Share the final URL, and keep og:url pointing at it.
  • Content type. The response must be text/html. A link straight to a PDF or a JSON endpoint has no tags to read.
  • Speed. Crawlers wait only a few seconds. The checker flags anything over 5 seconds, since a page that slow on a cold cache often times out for the crawler even if it loads for you.

Step 2: robots.txt and the firewall in front of it

Preview crawlers honour robots.txt, and a rule written for search engines can stop them too. Two real patterns:

User-agent: *
Disallow: /

This is common on a staging site that later becomes production with the file still in place. Every preview crawler falls under *, so every card is empty.

User-agent: *
Disallow: /uploads/

Here the page is allowed, but the image at /uploads/2026/11/banner.jpg is not. The crawler reads the title and description, then refuses to fetch the picture: you get a text-only card. The fix is an explicit allow block for the preview crawlers, for example User-agent: facebookexternalhit followed by Allow: /. Because Zalo publishes no token, the checker tests the likely names Zalo and ZaloBot as well as *; the safe assumption is that Zalo follows whatever * says.

The quieter culprit is a firewall or bot protection layer. Your browser passes the challenge; facebookexternalhit gets a 403 or a JavaScript challenge page with the title "Just a moment...". The checker fetches the page several times with different user-agents and compares the answers, so a site that serves people a 200 and Facebook's crawler a 403 shows up as a difference rather than a guess. It cannot copy Facebook's IP address, so a block based on IP ranges is still possible; your firewall's event log is the place to confirm it.

Step 3: the image, with numbers

Most "no picture" problems are about the image file, not the tags. The limits that matter:

CheckValueWhat happens
Width under 200 pxe.g. 150 x 150Facebook ignores the image
Width 200 to 599 pxe.g. 400 x 210Small square thumbnail beside the text
Width 600 px or moree.g. 1200 x 630Large card across the top
Ratio1200 / 630 = 1.905Matches the 1.91:1 card with almost no crop
File sizeunder 300 KB idealSlow images time out and the card loses its picture
File sizeover 8 MBFacebook refuses the file
FormatPNG or JPEGSVG is not drawn; WebP is not read everywhere
Addressabsolute https://Relative or http:// addresses fail on some apps

A worked example. A designer exports the banner at 2x: 2400 x 1260 PNG, 3.1 MB. It is under 8 MB, so it is technically accepted, but it is ten times the 300 KB target and the crawler may give up downloading it. The card needs only 1200 x 630, which is 756,000 pixels, a quarter of the 3,024,000 in the 2x file. Saved as JPEG at quality 80, a photo-style banner at that size typically lands around 120 to 180 KB. Same look in the card, roughly a twentieth of the bytes.

Also check that the image URL itself returns 200 with an image/... content type. A CDN that answers a hot-link check with an HTML error page gives the crawler something that is not an image at all.

Step 4: the text, including broken Vietnamese

Titles over about 60 characters and descriptions over about 155 get cut, so put the important words first. The checker counts characters as readers do, so "Cà phê sữa" is 10, not the 14 bytes it takes in UTF-8.

Broken accents are a separate bug. If the title shows C� ph� or Cà phê, the crawler decoded the page with the wrong character set. The usual causes: the server sends Content-Type: text/html without charset=utf-8, and the <meta charset="utf-8"> tag is missing or sits too far down. Browsers only look for that tag in the first 1024 bytes of the document, and crawlers are no more patient. Put it as the first line inside <head>, before any long inline style or script. The checker reports a replacement character (�) in any title or description as an error.

Step 5: fix done, card still old

Apps cache cards, so a fixed page can keep showing the broken preview. Ask each one to read it again:

  • Facebook and Messenger: the Sharing Debugger, "Scrape again".
  • LinkedIn: the Post Inspector.
  • Telegram: send the link to @WebpageBot.
  • Zalo: no public tool. Share the link with a harmless parameter such as ?v=2; to every cache it is a new address.

If the image changed, give it a new file name too. CDNs and apps cache images separately from pages.

A debugging order that saves time

OrderQuestionTypical fix
1Does the crawler get 200 HTML in under 5 s?Remove login redirects, share the final URL
2Do robots.txt and the firewall let it in, for page and image?Allow preview crawlers explicitly
3Are the tags in the HTML source, not added by JavaScript?Prerender or server-render the head
4Is og:image absolute, https, PNG/JPEG, 1200 x 630, under 300 KB?Re-export the image
5Is the charset declared in the first 1024 bytes?Move <meta charset="utf-8"> to the top
6Is the app still showing a cached card?Re-scrape, or share with ?v=2

Run the URL through the link preview checker and the list above maps directly onto its errors and warnings. When the problem is missing or malformed tags rather than access, the Open Graph tag generator writes a clean set you can paste into the template, and Open Graph tags that work covers how each platform crops the image.

Tools mentioned in this article

Back to the blog