Missing Open Graph Tags | Blue Frog Docs

Missing Open Graph Tags

Diagnose and fix missing or misconfigured Open Graph meta tags for better social sharing

Missing Open Graph Tags

What This Means

Open Graph (OG) tags are HTML meta elements that control how your content appears when shared on Facebook, LinkedIn, Slack, Discord, and most social platforms. Missing or incorrect OG tags result in:

  • Generic or broken social previews
  • Missing images when links are shared
  • Wrong titles or descriptions appearing
  • Reduced click-through rates from social shares
  • Inconsistent brand presentation

Impact: Pages with proper OG tags see 2-3x higher engagement on social shares compared to pages with missing metadata.

How to Diagnose

1. Manual HTML Inspection

Check your page source for required OG tags:

<head>
  <!-- Required OG tags -->
  <meta property="og:title" content="Your Page Title">
  <meta property="og:description" content="Your page description here">
  <meta property="og:image" content="https://example.com/image.jpg">
  <meta property="og:url" content="https://example.com/page">
  <meta property="og:type" content="website">

  <!-- Recommended additional tags -->
  <meta property="og:site_name" content="Your Site Name">
  <meta property="og:locale" content="en_US">
</head>

2. Facebook Sharing Debugger

  1. Visit Facebook Sharing Debugger
  2. Enter your page URL
  3. Click Debug
  4. Review warnings and missing properties

3. Browser DevTools

// Console command to check OG tags
Array.from(document.querySelectorAll('meta[property^="og:"]'))
  .map(m => `${m.getAttribute('property')}: ${m.getAttribute('content')}`)
  .join('\n');

4. Common Issues Detected

Issue Facebook Debugger Message
Missing og:image "Missing Properties: og:image"
Image too small "Provided og:image is not big enough"
Missing og:title Falls back to <title> tag
Missing og:description Falls back to <meta name="description">
HTTP image on HTTPS page Image may not load

General Fixes

Basic OG Tag Implementation

<!-- Minimum required tags -->
<meta property="og:title" content="How to Optimize Your Website Performance">
<meta property="og:description" content="Learn proven strategies to improve Core Web Vitals and boost your site speed by up to 300%.">
<meta property="og:image" content="https://example.com/images/og-performance-guide.jpg">
<meta property="og:url" content="https://example.com/guides/performance-optimization">
<meta property="og:type" content="article">

<!-- Recommended additions -->
<meta property="og:site_name" content="BlueFrog Analytics">
<meta property="og:locale" content="en_US">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="Performance optimization guide cover image">

Article-Specific Tags

For blog posts and articles:

<meta property="og:type" content="article">
<meta property="article:published_time" content="2025-01-15T08:00:00Z">
<meta property="article:modified_time" content="2025-01-20T10:30:00Z">
<meta property="article:author" content="https://example.com/authors/jane-doe">
<meta property="article:section" content="Performance">
<meta property="article:tag" content="Core Web Vitals">
<meta property="article:tag" content="Page Speed">

E-commerce Product Tags

For product pages:

<meta property="og:type" content="product">
<meta property="product:price:amount" content="49.99">
<meta property="product:price:currency" content="USD">
<meta property="product:availability" content="in stock">
<meta property="product:brand" content="BlueFrog">
<meta property="product:retailer_item_id" content="SKU-12345">

Image Requirements

Optimal dimensions:

  • Recommended: 1200 x 630 pixels (1.91:1 ratio)
  • Minimum: 600 x 315 pixels
  • Maximum file size: 8MB (recommend under 1MB for speed)
  • Formats: JPG, PNG, GIF (static)
<!-- Specify image dimensions for faster rendering -->
<meta property="og:image" content="https://example.com/og-image.jpg">
<meta property="og:image:secure_url" content="https://example.com/og-image.jpg">
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="Descriptive alt text for the image">

Dynamic OG Tags (JavaScript Frameworks)

For React, Next.js, Vue, and other SPAs:

Next.js (App Router):

// app/page.tsx
export const metadata = {
  openGraph: {
    title: 'Page Title',
    description: 'Page description',
    images: [
      {
        url: 'https://example.com/og-image.jpg',
        width: 1200,
        height: 630,
        alt: 'Image description',
      },
    ],
    type: 'website',
  },
};

React Helmet:

import { Helmet } from 'react-helmet';

function PageComponent() {
  return (
    <Helmet>
      <meta property="og:title" content="Page Title" />
      <meta property="og:description" content="Description" />
      <meta property="og:image" content="https://example.com/image.jpg" />
    </Helmet>
  );
}

Vue Meta:

export default {
  metaInfo: {
    meta: [
      { property: 'og:title', content: 'Page Title' },
      { property: 'og:description', content: 'Description' },
      { property: 'og:image', content: 'https://example.com/image.jpg' },
    ],
  },
};

Platform-Specific Guides

Platform Guide
Shopify Shopify OG Tags
WordPress WordPress OG Setup
Wix Wix Social Settings
Squarespace Squarespace OG Tags
Webflow Webflow Open Graph

Verification

After implementing OG tags:

  1. Clear platform cache:

    • Facebook: Use Sharing Debugger → "Scrape Again"
    • LinkedIn: Use Post Inspector to refresh
    • Twitter: Cache clears automatically (usually within hours)
  2. Test on multiple platforms:

    • Share link in a private message to yourself
    • Verify image, title, and description appear correctly
    • Check on both desktop and mobile
  3. Monitor with automated tools:

    • Set up regular audits with BlueFrog Analytics
    • Configure alerts for missing OG tags on new pages

Common Mistakes

Mistake Solution
Using relative image URLs Always use absolute URLs with https://
Image dimensions too small Use 1200x630 minimum
Missing og:url causing duplicates Add canonical og:url to every page
Dynamic content not rendered Use SSR or prerendering for SPAs
HTTP images on HTTPS pages Ensure all og:image URLs use HTTPS

Further Reading

// SYS.FOOTER