Open Graph Tags for Better Link Previews

A practical Open Graph guide for blogs and tool pages, with field-level rules, image guidance, and debugging workflow.

Amit Yadav
Amit Yadav

When someone shares a URL in chat apps or social networks, Open Graph data often controls the preview card. If your OG tags are missing or inconsistent, your post can appear with wrong text, weak images, or unrelated metadata.

For AllSVGIcons, this matters because tutorials and tools are frequently shared in developer communities.

What Open Graph controls

At minimum, Open Graph should provide:

  • og:title
  • og:description
  • og:url
  • og:image
  • og:type

These fields define the identity and presentation of the shared URL.1

For tool pages

  • og:type: website
  • Title: action-driven and task-specific
  • Image: screenshot showing the tool UI

For blog posts

  • og:type: article
  • Title: exact article title
  • Description: one clear summary sentence
  • Image: topic-specific visual, not a site-wide generic placeholder

This split helps shared previews communicate intent instantly.

Image guidance that avoids broken previews

Use an absolute image URL and keep files lightweight but clear. A common target for social previews is 1200x630.

Practical checklist:

  1. Image URL returns 200 and is crawlable.
  2. No auth needed to fetch image.
  3. Not blocked by robots or headers.
  4. Content matches page topic.

Debug workflow

When previews look stale or wrong:

  1. Confirm OG tags in final rendered HTML.
  2. Verify canonical URL alignment.
  3. Re-scrape URL using platform debugger tools.
  4. Check if the image URL changed but cache did not refresh.
Tool-page pattern

Use one OG image style template per tool family, but do not reuse the exact same image across all tools.

Example block

<meta property="og:type" content="website">
<meta property="og:title" content="Free SVG Optimizer - Clean and Compress SVG Code">
<meta property="og:description" content="Optimize SVGs in your browser with SVGO-powered options and copy-ready output.">
<meta property="og:url" content="https://allsvgicons.com/svg-optimizer/">
<meta property="og:image" content="https://allsvgicons.com/og/svg-optimizer.png">

Common Open Graph mistakes

  • Relative image URLs instead of absolute URLs
  • Copy-paste metadata that still references old pages
  • Generic descriptions with no user task context
  • Mismatch between og:url and canonical URL

Each mistake reduces preview quality and weakens trust when links are shared.

Practical FAQ

Publish checklist

  • OG title and page heading align
  • OG description matches core page outcome
  • OG image URL is absolute and public
  • OG URL matches canonical
  • Image still loads after deploy

Additional source references: 2 3.

Sources

Footnotes

  1. Open Graph protocol

  2. MDN: <meta> element

  3. Facebook Sharing Debugger docs

Share this post