Open Graph Meta Tags: The Complete Guide

You share a link in a Slack channel or a LinkedIn post, and instead of your carefully designed page, it shows a stretched, cropped screenshot, the wrong headline, or no image at all. The page itself is fine. What's missing is a small set of meta tags that tell social platforms exactly what to display.

That's what Open Graph tags do. They sit quietly in your page's <head>, never seen by a visitor browsing the site directly, but read by every platform that turns your URL into a preview card the moment someone pastes it in.

Quick Answer

Open Graph meta tags are <meta> tags in a page's <head> that control the title, description, and image shown when a link is shared on platforms like Facebook, LinkedIn, and Slack. The four essentials are og:title, og:type, og:image, and og:url — add those and most platforms will render a clean, accurate preview instead of guessing.

What are Open Graph meta tags?

Open Graph is a protocol originally introduced by Facebook so that any web page could describe itself as a rich object — with a title, image, and description — instead of a bare URL. Most major platforms now read the same tags.

In short: Open Graph tags are the difference between a link that shows exactly what you intended and one that shows whatever the platform managed to scrape off the page.

Why Open Graph tags matter

These tags are invisible on the page itself, which is exactly why they're easy to skip — and why skipping them has a real, visible cost elsewhere:

📊 Quick stat 1200×630 pixels is the image size Facebook's own developer documentation recommends for og:image — anything much smaller risks the platform downscaling it or rejecting it from the preview entirely.

Step-by-step: adding Open Graph tags to a page

  1. Decide the page's og:type. Use website for most pages and article for blog posts — this tells platforms how to categorize the content.
  2. Write a dedicated og:title. It can match your <title> tag, but keep it under roughly 60 characters so platforms don't truncate it awkwardly.
  3. Write an og:description. One or two sentences, under about 155 characters, that describe the specific page — not a generic sitewide summary.
  4. Set og:image to a 1200×630 image. Use an absolute URL (starting with https://), not a relative path, or some platforms will fail to load it.
  5. Add og:url with the canonical page URL. This tells platforms which version of the URL to treat as the source of truth, even if the link was shared with tracking parameters attached.
  6. Paste the tags into your CMS's head or meta fields. WordPress, Shopify, Webflow, and most builders have a per-page meta or social-preview section built for exactly this.
  7. Clear the platform's cache and re-check. Run the live URL through Facebook's Sharing Debugger or LinkedIn's Post Inspector to force a fresh scrape and confirm the preview looks right.
Try the Rebrixe Open Graph Generator — free Fill in a short form, get a ready-to-paste set of Open Graph tags. No coding required.
Generate Open Graph Tags →

Common mistakes to avoid

1. Using a relative path for og:image

A path like /images/cover.jpg works fine in a browser but often fails when a platform's scraper tries to fetch it — og:image needs a full, absolute URL including the domain.

2. Reusing one image and title sitewide

Setting the same og:image and og:title on every page means every shared link looks identical, whether someone shared your homepage or a specific product page — the preview stops telling the viewer anything useful.

3. Forgetting the cache clears manually

After changing tags on an already-shared page, the old preview persists until it's force-refreshed through the platform's own debugging tool — simply re-uploading the page isn't enough.

4. Skipping og:image:width and og:image:height

Without these, some platforms have to download the image first just to figure out its dimensions before rendering a preview, which can slow down or occasionally break the preview generation.

💡 Pro tip Keep a single dedicated Open Graph image template — same dimensions, same logo placement — so every new page's preview image can be produced in minutes instead of designed from scratch each time.

Real-world examples

How different types of pages typically set up their Open Graph tags:

Blog post
og:type = article
1200×630
Uses the post's featured image and headline, with og:description pulled from the post excerpt.
Product page
og:type = website
Product photo
og:image shows the product on a clean background; og:title includes the product name and brand.
Homepage
og:site_name set
Logo + tagline
Uses a branded image with the company name, since this page represents the whole site, not one piece of content.
Landing page
Custom og:description
Campaign-specific
Ships a unique image and description built for the specific campaign the link is being shared from.

Each example uses tags scoped to that exact page — none of them rely on a single generic image or description reused across the whole site.

Open Graph vs. other social tags compared

Open Graph isn't the only meta tag standard platforms read. Here's how it compares to the others you'll encounter.

Tag set Used by Controls Required?
Open Graph (og:*) Facebook, LinkedIn, Slack, Discord, iMessage Title, description, image, URL, type Effectively yes
Twitter Cards (twitter:*) X (Twitter) Card layout, image, title on X specifically Optional, falls back to OG
Standard meta description Google Search snippets Search result description only Recommended, separate purpose
Schema.org JSON-LD Google rich results Rich snippets, not social previews Unrelated to sharing

Generate your Open Graph tags right now — free

The Rebrixe Open Graph Generator builds a complete, correctly formatted set of tags — title, description, image, type, and URL — ready to paste straight into your page's head. No account, no watermark, nothing to code.

Free Open Graph Tag Generator Fill in the fields, copy the meta tags.
Open Tag Generator →

Frequently asked questions

Open Graph tags are a set of meta tags that tell platforms like Facebook, LinkedIn, and Slack what title, description, and image to show when a page is shared as a link. Without them, the platform guesses, and the guess is often wrong.
og:title, og:type, og:image, and og:url are the four properties Facebook's own documentation treats as the minimum for a usable preview. Everything else, like og:description or og:site_name, improves the preview but isn't strictly required to render one.
1200x630 pixels is the standard recommendation, giving a 1.91:1 aspect ratio that displays without cropping on most platforms. Going below 600x315 pixels risks the platform rejecting the image or showing it at a lower resolution.
X falls back to Open Graph tags automatically if dedicated Twitter Card tags aren't present, but adding twitter:card, twitter:title, and twitter:image alongside your Open Graph tags gives more precise control over how the link looks there.
Facebook, LinkedIn, and other platforms cache the preview the first time a URL is shared, so updated tags won't appear until that cache is cleared using each platform's own debugging or inspection tool.
Technically yes, but it defeats the purpose. Each page should have its own og:title, og:description, and og:image describing that specific page, otherwise every shared link on the site looks identical regardless of what was actually shared.
No. Open Graph tags affect how a link looks when shared socially, not how a page ranks in search results. A page can rank well with no Open Graph tags at all, and a page with perfect Open Graph tags gets no direct ranking benefit from them.

Generate your Open Graph tags in seconds

The Rebrixe Open Graph Generator builds a clean, correctly formatted set of meta tags — no account, no watermark, and nothing to code, just a ready-to-paste block.

Launch the Tag Generator →
← Back to blogs