How to create Open Graph tags
- Enter the title and description you want to appear on share cards. They can differ from your SEO title — they should make people want to click when they see the link in a feed.
- Add the page URL and a full image URL (starting with https://). You can also choose a local image just to preview the layout.
- Copy the code into your page’s
<head>. - Check the result with Facebook’s Sharing Debugger (which also refreshes Facebook’s cache) and LinkedIn’s Post Inspector.
What is Open Graph?
Open Graph is a set of meta tags, created by Facebook, that tells social platforms how to display a link: which title, description and image to show. It is used by Facebook, LinkedIn, WhatsApp, Messenger, Telegram, Slack, Discord and many others. X (Twitter) uses its own twitter: tags but falls back to Open Graph for most values.
Without these tags, platforms guess — often picking a logo, a random image from the page, or no image at all, which makes your link easy to scroll past.
Essential tags
| Tag | Purpose |
|---|---|
| og:title | Headline on the card |
| og:description | One or two lines of summary |
| og:image | The picture — the most important element for clicks |
| og:url | The canonical address of the page |
| og:type | website, article, product… |
| twitter:card | summary_large_image for a big image card on X |
Share image tips
- Use 1200 × 630 pixels (1.91:1). This works well on Facebook, LinkedIn and X; WhatsApp shows a smaller square crop of the centre.
- Keep important text and faces in the centre so they survive cropping.
- Use JPG or PNG under about 5 MB; WebP is not supported everywhere.
- Use an absolute URL starting with https://, publicly accessible (not behind a login).
- Need to resize? Use our Image Resizer with 1200 × 630 and “crop to fill”.
Why isn’t my new image showing?
Platforms cache link previews. After changing your tags, paste the URL into Facebook’s Sharing Debugger and click “Scrape Again”; LinkedIn’s Post Inspector does the same. WhatsApp caches previews per device and may take time to update.
Frequently asked questions
What size should an Open Graph image be?
1200 × 630 pixels (1.91:1 ratio) is the best all-round size for Facebook, LinkedIn and X.
Does WhatsApp use Open Graph tags?
Yes. WhatsApp reads og:title, og:description and og:image to build link previews.
Why does Facebook show an old image?
Facebook caches previews. Use the Facebook Sharing Debugger and click “Scrape Again” to refresh it.
Do Open Graph tags help SEO?
Not directly, but attractive share cards bring more clicks and visits from social media.