Back to blogs

October 16, 2025

Understanding Open Graph: Making Your Links Look Good Everywhere

Ever shared your website or blog link on X, LinkedIn, or WhatsApp — only to see a boring plain URL instead of a nice preview with a title, image, and description? That’s where Open Graph comes in.

What is Open Graph?

Open Graph (OG) is a metadata protocol introduced by Meta (formerly Facebook) that lets you control how your content appears when shared on social media. In simple terms, it’s like giving social platforms a cheat sheet for how your web page should look in a link preview.

When a crawler (like Meta, X (formerly Twitter), or LinkedIn) visits your page, it looks for special <meta> tags inside your <head> — these tags define what text, image, and title should appear in the preview card.


Why is Open Graph Important?

Without OG tags, social platforms have to guess what to display — and often, they guess wrong. With OG tags, you control the message.

Benefits:

  • Improves click-through rate — People are more likely to click a visually appealing preview.
  • Ensures consistent branding across platforms.
  • Better SEO synergy — While not a ranking factor, it improves how your links appear and get shared.
  • Useful for social sharing bots that rely on OG data.

How to Implement Open Graph Tags

Here’s a minimal example inside your HTML <head>:

index.html
<head>  <title>My Awesome Blog Post</title>  <!-- Basic Open Graph tags -->  <meta property="og:title" content="My Awesome Blog Post" />  <meta property="og:description" content="A deep dive into how Open Graph makes your links look great on social media." />  <meta property="og:image" content="https://example.com/og-image.jpg" />  <meta property="og:url" content="https://example.com/blog/open-graph-guide" />  <meta property="og:type" content="article" />  <!-- Optional: site name -->  <meta property="og:site_name" content="Example Blog" />  <!-- Twitter (uses Open Graph fallback if not defined) -->  <meta name="twitter:card" content="summary_large_image" />  <meta name="twitter:title" content="My Awesome Blog Post" />  <meta name="twitter:description" content="A deep dive into how Open Graph makes your links look great on social media." />  <meta name="twitter:image" content="https://example.com/og-image.jpg" /></head>

Notes:

  • og:title, og:description, and og:image are the most critical tags.
  • Always use absolute URLs (with https://) for og:image and og:url.
  • Images should ideally be 1200×630 px (for best compatibility).

How to Test Your Open Graph Setup

Once you’ve added your OG tags, you can use these tools to validate how your preview looks:

PlatformToolURL
MetaSharing DebuggerRefreshes OG cache
LinkedInPost InspectorShows LinkedIn preview
GeneralOpengraph.devQuick multi-platform preview

These tools fetch your page, read the meta tags, and show you the preview — exactly how users would see it.


Example: Before & After Open Graph

Without Open Graph

nihalmurmu.com

Just a raw link — no context, no image.

With Open Graph

Open Graph Preview Example

Now it’s clickable, branded, and visually appealing — a small tweak with big payoff.


Final Thoughts

Open Graph tags are one of those “set it once, benefit forever” optimizations. If you care about how your content looks when shared — and you should — implementing OG tags is a no-brainer.

They’re simple to add, easy to test, and drastically improve how your brand appears across the web.