SSAYF & CO.TOOLS
Free audit

How to Set an Open Graph Image So Your Links Look Good When Shared

Why some shared links show a blank or wrong image, the right Open Graph image size, how to add the tags and how to refresh old previews.

Websites · 2 min read · · By Saifullah Ghanghro

How to Set an Open Graph Image So Your Links Look Good When Shared

When someone shares your page on WhatsApp, LinkedIn, Facebook or Slack, the app builds a preview card with a title, description and image. That card comes from Open Graph tags in your page. Without them, your link may show a random image, a cropped logo or nothing at all.

The tags that matter

  • og:title: the headline on the card
  • og:description: one or two sentences of summary
  • og:image: the full web address of the preview image
  • og:url: the page address

The right image size

Use an image of 1200 by 630 pixels, under about 1 MB, in JPG or PNG. Keep text and important details away from the edges, because some apps crop the image into a square.

How to add the tags

On WordPress, an SEO plugin such as Yoast lets you set a social image for each page. On a custom site, create the tags with the free Open Graph generator and paste them into the head section of the page.

Check the result

Enter your page address in the social preview tool to see how the card will look, and use the meta tag analyzer to make sure the tags are present and correct.

What to put on the image

The best preview images are simple: a clear headline of a few words, your logo in a corner and a background in your brand colours or a relevant photo. Avoid small text, which becomes unreadable in a phone feed, and avoid putting important details near the edges. If you publish often, create a template so every new page gets a consistent image in minutes.

One image for every page, or one for the site?

A single default image is better than none, but a specific image for each important page, such as each blog post, product or landing page, usually earns more clicks because it matches what people are about to read.

Old preview still showing?

Apps cache previews. Facebook and LinkedIn both offer free post inspector or sharing debugger tools where you can enter the URL and ask them to fetch it again. For WhatsApp, adding a simple query such as ?v=2 to the link usually forces a fresh preview.

Sayf & Co.

Tools find the problems. We fix them.

Get a free audit of your website, search presence and social channels — with a clear, prioritised plan to grow.

Get your free audit