Why your links look bad when shared, and the 10-minute fix

Shared your website on Facebook or WhatsApp and got no picture? Here is how link previews work, what Open Graph tags are, and how to fix them.

· 4 min read
Two versions of a shared link, one plain grey and one with a large photo and title
Photo: Shixart1985, CC BY 2.0, via Wikimedia Commons

You share your website on Facebook, in a WhatsApp group or on LinkedIn. Instead of a bright card with a photo and a clear title, you get a plain grey link, a random logo, or a cropped picture of somebody's elbow.

That card is often the first thing a customer sees of your business. The good news is that fixing it usually takes a few small tags on each page.

When you paste a link into Facebook, Instagram or Messenger, Meta sends a small program called FacebookExternalHit to visit the page. Meta says it collects the page's title, description and thumbnail image to build the preview (Meta for Developers). WhatsApp, LinkedIn, X and many chat apps do something similar.

What they look for are Open Graph tags: short lines in the hidden head of each web page. The Open Graph protocol, the standard behind them, lists four properties every page needs (ogp.me):

  • og:title: the title shown on the card;
  • og:type: what the page is, for example a website or an article;
  • og:image: the picture shown on the card;
  • og:url: the page's main, permanent address.

It also lets you add the image's width, height and an alt description, and an optional og:description, the line of text under the title that most apps show.

If these tags are missing, each app guesses. That is when you get the wrong photo or none at all.

Why the picture matters even more now

A good share image is not only for social media. Google's guidance for Discover, the feed of articles in the Google app and on many Android phones, recommends large, high-quality images at least 1200 pixels wide, set through og:image or structured data, with large previews allowed through a setting called max-image-preview:large (Google Search Central). Google also advises against using a generic image such as your logo.

So one well-chosen picture per page works for Facebook, WhatsApp and Google at once.

The 10-minute fix

1. Check what you have now. Paste your page link into Meta's Sharing Debugger (search for "Meta Sharing Debugger"). It shows the title, description and image Meta sees, and any warnings.

2. Pick one great image per important page. Your home page, each service page, and each article. Use a real photo of your work, your team or your shop. Avoid logos and pictures packed with text. We use 1200 by 630 pixels for our own share images, which also meets Google's 1200-pixel width guidance.

3. Write a share title and description. The title can match the page title. The description should say, in one sentence, why someone should click.

4. Add the tags. Most website builders have a "social sharing" or "SEO" box on each page where you upload the image and type the title and description. If you edit code yourself, the tags go in the page's head section.

5. Add alt text to the image. Describe what the picture shows, not a sales line. It helps people using screen readers.

6. Re-test. Paste the link back into the Sharing Debugger and ask it to fetch the page again. Apps keep old previews for a while, so a fresh fetch is often needed before the new picture appears.

The mistake that breaks every preview

Some website owners block bots to stop AI companies reading their content. That is a reasonable choice, but be careful how you do it.

If you block all of Meta's crawlers in your robots.txt file, you may also block FacebookExternalHit, and your previews can break. Meta lists separate crawlers for AI training and indexing, such as Meta-ExternalAgent, so you can choose to block those while leaving previews working (Meta for Developers).

A quick checklist for every new page

  • ☐ Page has its own og:title and og:description
  • ☐ Page has its own og:image, at least 1200 pixels wide, not a logo
  • ☐ Image has alt text
  • ☐ og:url is the page's main address
  • ☐ Link tested in a sharing debugger
  • ☐ robots.txt does not block FacebookExternalHit

The short version

A link preview is free advertising every time someone shares your site. Give each important page its own picture, title and description, test it, and make sure you are not blocking the crawler that builds the preview.

If you would like a hand checking your own share previews, the real people behind Moon Websites are on the chat at moonwebsites.co.uk.

Sources

AI-assisted, checked by Moon Websites.

Found this useful? Share it.

Add Moon Websites as a preferred source on Google

Pick Moon Websites once, and Google can show you more of our stories when you search.

More from Moon

All news