Skip to main content
Technical SEO Guide

How to Improve Open Graph Metadata

Open Graph and Twitter tags control how a link is represented when shared and are sometimes used by other systems as structured hints.

The issue

Pages are missing og:title/description/image or Twitter card tags, or values disagree with the page title/description.

Why it matters

Inconsistent or missing OG data produces poor or wrong previews and weakens a page's representation.

Common mistakes

  • No og:image, or an image that 404s.
  • OG values inconsistent with the <title>/meta description.
  • Missing twitter:card type.
  • Relative OG URLs instead of absolute https.

Practical recommendations

  • Set og:title, og:description, og:image, og:url, og:type, og:site_name.
  • Use an absolute https og:image that exists.
  • Mirror the page's real title/description.
  • Add twitter:card, twitter:title, twitter:description, twitter:image.

Check your pages

Preview with the free Open Graph Preview and read the OG image guide.

An implementation workflow that scales

Fixing Open Graph tags page by page does not last: the next page published repeats the old mistakes. Set the tags up once, per type of page, and let the site generate them.

  1. Inventory the page types. Most sites have a handful: home page, articles, product or service pages, tool pages and legal pages. Each type gets one rule for every tag.
  2. Define a source for each tag. og:title usually comes from the page title without the site suffix, og:description from the meta description, and og:url from the canonical URL, so the three can never disagree.
  3. Decide the image per type. Articles and products deserve their own 1200 × 630 image. Legal and utility pages can share a branded fallback. Generate type-specific images at build time rather than designing each one by hand.
  4. Add the type-specific tags. Articles use og:type article with article:published_time and article:modified_time. Multilingual sites add og:locale (for example en_US) and og:locale:alternate for each other language.
  5. Test before and after deploy. Preview the values, then check the live page, then re-scrape on the platforms that matter to you.

Where the tags come from in common stacks

  • Next.js (App Router): the metadata export or generateMetadata sets openGraph fields per route, and an opengraph-image file in a route segment generates the image for that route.
  • Astro and other static generators: pass title, description, canonical and image into one shared layout component, so every page gets the same, complete set.
  • WordPress: an SEO plugin fills the tags from the post title, excerpt and featured image. Make sure only one plugin or theme outputs them, or pages end up with two conflicting sets.

A QA checklist for every release

  • Exactly one og:title, og:description, og:image and og:url per page.
  • og:url equals the canonical URL.
  • og:image is an absolute https URL that returns 200, is not blocked by robots.txt and has the size you declared.
  • No placeholder text such as "Untitled" or a default description repeated across pages.
  • twitter:card is set to summary_large_image wherever a large preview is wanted.

The Meta Tag Checker reads the live tags of a page, and the Open Graph Preview shows how a set of values would look before you publish it.

FAQ

Is this guaranteed to improve rankings?

No. This is technical hygiene that helps machines parse and trust pages; no ranking outcome is guaranteed.

Do I need a backend?

No. The linked tools run entirely in your browser; nothing is uploaded.

How often should I check?

After every significant deploy, and periodically as content changes.

Should og:title be the same as the page title?

It should say the same thing, but it can drop the site name suffix and be a little more conversational, because the platform shows the site name separately.

Does every page need its own og:image?

Pages people share — articles, products, tools — benefit most from their own image. A branded fallback is fine for legal and utility pages.

Related guides

Related tools

Related docs

HELPERG ecosystem

Owned, lightweight,
privacy-conscious

WebmasterID is designed for website visibility you control. Explore the product, docs, and integrations.