Open Graph Meta Tags

Open Graph meta tags are snippets of code that control how URLs appear when shared on social media platforms like Facebook, LinkedIn, and X (formerly Twitter).

Open Graph Meta Tags

Open Graph meta tags are special HTML tags added to a webpage to control how content appears when shared on social media platforms like Facebook, LinkedIn, and X (formerly Twitter). They were originally introduced by Facebook through the Open Graph protocol, which is now widely adopted across social networks.

These tags allow you to define the title, description, image, and URL that will show up in a social media post preview. Without Open Graph tags, platforms may pull random or incomplete data, which can lead to unattractive or misleading previews.

Why Open Graph tags matter

Open Graph meta tags help you:

  • Control how your content looks on social media
  • Make your shared links more engaging and clickable
  • Improve click-through rates (CTR) from social traffic
  • Ensure brand consistency in link previews
  • Reduce the chance of incorrect or missing preview info

They don’t directly affect your SEO rankings, but they improve visibility and engagement, which can indirectly support your SEO goals.

Common Open Graph meta tags

Here are the most commonly used Open Graph tags:

TagPurpose
og:titleSets the title shown in the social media preview
og:descriptionShort summary of the content
og:imageURL of the image to display
og:urlCanonical URL of the page
og:typeType of content (e.g., website, article, video)
og:site_nameName of your site or brand

HTML example of Open Graph meta tags

<meta property="og:title" content="10 Simple SEO Tips for Beginners">
<meta property="og:description" content="Learn how to boost your website traffic with these beginner-friendly SEO tips.">
<meta property="og:image" content="https://example.com/images/seo-tips.jpg">
<meta property="og:url" content="https://example.com/seo-tips">
<meta property="og:type" content="article">
<meta property="og:site_name" content="SEO Academy">

These tags ensure your page displays correctly when shared on Facebook, LinkedIn, and other platforms that use Open Graph data.

Best practices for Open Graph tags

  • Always use absolute URLs for og:image and og:url
  • Choose a clear, eye-catching image (at least 1200×630 pixels)
  • Match the og:title and og:description to your page content
  • Use one set of OG tags per page
  • Test how your content appears using the Facebook Sharing Debugger
  • Add Twitter Cards as a complement for better sharing on X (Twitter)

In summary, Open Graph meta tags help control how your website content is displayed when shared on social media. They don’t directly impact your SEO rankings, but they play a big role in engagement, visibility, and making sure your content looks polished and professional when shared online.

Free SEO Tools

Simple, powerful tools to help you improve your website's SEO performance

SERP Checker

Enter your website and keyword to see where you rank in Google search results.

Try it free →

SEO Checker

Analyze your website's SEO and get actionable tips to improve.

Try it free →

Keyword Rankings

Discover all the keywords your website is already ranking for on Google.

Try it free →