Menu

1 / 3

Why your link preview shows no image (6 causes and how to test each)

DEV Community: html·CapyLaunch·4 days ago
#J6GGincB
#devto2#devto#dev#launch#often
Reading 0:00
15s threshold

You paste your launch link into X, LinkedIn or Slack, and it shows up as a plain grey box. No picture, sometimes the wrong title. On launch day that costs clicks, because people scroll past links without an image.

Here are the six causes I see most often, and a quick way to test each one.

1. There is no og:image tag at all

Social sites do not guess. They read one tag:

<meta property = "og:image" content = "https://yourproduct.com/og.png" >

Enter fullscreen mode

Exit fullscreen mode

Test: view the page source (Ctrl+U) and search for og:image . If it is missing, add it in the <head> .

2. The image URL is relative

content="/og.png" works in a browser but many crawlers ignore it. Use the full address with https:// .

3. The image is behind a login or blocked

If the file needs a cookie, sits on a staging domain, or your robots.txt blocks the folder, the crawler gets an error page instead of a picture. Open the image URL in a private window. If you cannot see it there, neither can X.

4.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.