Shopify Open Graph & Social Card Validator

Inspect and debug Shopify Open Graph tags, resolve product image cropping on social feeds, and eliminate duplicate social declarations across Liquid themes.

Advertisement
AdSense Placeholder: Top Leaderboard Ad (728x90 / 320x50)

Displayed below main page header or above the tool container. • Zero CLS Container

Complementary Social & Media Tools for Shopify

Inspect 1200x630 safe zones, preview Google SERP snippets, and build UTM campaign links.

Load Sample:

Meta Tag Inputs

Live Sync

Want to track traffic attribution? Generate tagged links with the Campaign UTM Builder.

54 / 70 chars
125 / 200 chars
Analyzing dimensions...
A

Alpine Goods Co.

Sponsored · 🌐

Merino Wool Thermal Crewneck ($128) | Alpine Goods Co.
yourstore.myshopify.com

Merino Wool Thermal Crewneck ($128) | Alpine Goods Co.

100% ultrafine Australian Merino wool crewneck sweater with moisture-wicking temperature regulation. Free shipping over $100.

Export Production Meta Tags

{%- comment -%}
  Shopify Theme SEO & Social Meta Tags
  Snippet location: snippets/meta-tags.liquid
{%- endcomment -%}

<title>
  {{ page_title }}{% if current_tags %} &ndash; tagged "{{ current_tags | join: ', ' }}"{% endif %}{% if current_page != 1 %} &ndash; Page {{ current_page }}{% endif %}{% unless page_title contains shop.name %} &ndash; {{ shop.name }}{% endunless %}
</title>

{%- if page_description -%}
  <meta name="description" content="{{ page_description | escape }}">
{%- endif -%}

<link rel="canonical" href="{{ canonical_url }}">
<meta name="robots" content="index, follow">

<!-- Open Graph / Facebook -->
<meta property="og:site_name" content="{{ shop.name | escape }}">
<meta property="og:url" content="{{ canonical_url }}">
<meta property="og:title" content="{{ page_title | default: shop.name | escape }}">
<meta property="og:type" content="{% if request.page_type == 'product' %}product{% elsif request.page_type == 'article' %}article{% else %}website{% endif %}">
<meta property="og:description" content="{{ page_description | default: shop.description | escape }}">
{%- if page_image -%}
  <meta property="og:image" content="https:{{ page_image | image_url: width: 1200, height: 630 }}">
  <meta property="og:image:secure_url" content="https:{{ page_image | image_url: width: 1200, height: 630 }}">
{%- endif -%}

<!-- Twitter / X -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="{{ page_title | default: shop.name | escape }}">
<meta name="twitter:description" content="{{ page_description | default: shop.description | escape }}">
{%- if page_image -%}
  <meta name="twitter:image" content="https:{{ page_image | image_url: width: 1200, height: 630 }}">
{%- endif -%}
Advertisement
AdSense Placeholder: Native In-Feed Ad (Responsive)

Separates the interactive tool output from the deep technical guide. • Zero CLS Container

Direct Answer: Shopify (Liquid Social Meta Tags) Open Graph Requirements

In Shopify themes (such as Dawn or Online Store 2.0 templates), Open Graph meta tags are generated dynamically inside snippets/social-meta-tags.liquid or layout/theme.liquid using Liquid object properties ({{ page_title }}, {{ page_description }}, and {{ product.featured_image | image_url: width: 1200, height: 630 }}). Common social card failures in Shopify occur when third-party apps (product review widgets, page builders, or social share apps) inject competing <meta property='og:image'> tags into theme.liquid alongside the native theme output, or when themes output square product images without the 1200x630 (1.91:1) aspect ratio filter, resulting in aggressive cropping on Facebook and Twitter/X. Consolidating all Open Graph declarations into a single, clean Liquid snippet and using Shopify's image_url filter with explicit 1200x630 dimensions fixes social card previews permanently.

Resolving Duplicate Open Graph Tags and Image Sizing in Shopify Themes

Technical deep dive into Shopify (Liquid Social Meta Tags) social metadata quirks, aspect ratios, and cache debugging

Shopify's e-commerce architecture relies on social sharing cards to drive viral referral traffic and social commerce sales across Instagram, Facebook, Twitter/X, and WhatsApp.

1. The Square Product Image Cropping Problem

By default, e-commerce product photos are shot in square (1:1) or vertical (3:4 / 4:5) aspect ratios for storefront gallery display. When shared on social networks, platforms expect a 1.91:1 aspect ratio (1200x630px).

If a Liquid template outputs a raw product image URL without center-cropping, social crawlers crop the top and bottom of the image, cutting off product packaging, model heads, or logos:

<!-- UNOPTIMIZED SHOPIFY LIQUID (Causes aggressive edge cropping) -->
<meta property="og:image" content="https:{{ product.featured_image | img_url: 'master' }}">

<!-- OPTIMIZED SHOPIFY LIQUID (1200x630 1.91:1 Standard) -->
<meta property="og:image" content="https:{{ product.featured_image | image_url: width: 1200, height: 630, crop: 'center' }}">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">

2. Resolving App Collisions & Duplicate OG Tags

When Shopify store owners install review apps (Judge.me, Loox, Yotpo) or page builder apps (Shogun, PageFly), these apps often inject their own social meta tags into layout/theme.liquid. Crawlers that parse multiple og:title or og:image tags may choose an outdated fallback image or fail to render the card entirely.

Ensure that your layout/theme.liquid renders a single, centralized {% render 'social-meta-tags' %} snippet and that installed apps do not duplicate head meta tags.

3. Protocol Prefixing on Shopify CDN URLs

Shopify Liquid filters like image_url return protocol-relative URLs starting with //cdn.shopify.com/.... Social media crawlers (especially Twitterbot and LinkedInBot) strictly require absolute URLs with the https: protocol. Always prepend https: before the Liquid tag.

snippets/social-meta-tags.liquid (Shopify Liquid)Shopify Liquid & OS 2.0
<!-- snippets/social-meta-tags.liquid (Shopify Online Store 2.0) -->
<meta property="og:site_name" content="{{ shop.name }}">
<meta property="og:url" content="{{ canonical_url }}">
<meta property="og:title" content="{{ page_title | default: shop.name }}">
<meta property="og:type" content="{% if template contains 'product' %}product{% else %}website{% endif %}">
<meta property="og:description" content="{{ page_description | default: shop.description | strip_html | truncatewords: 30 | escape }}">

{%- if template contains 'product' and product.featured_image -%}
  <meta property="og:image" content="https:{{ product.featured_image | image_url: width: 1200, height: 630, crop: 'center' }}">
  <meta property="og:image:secure_url" content="https:{{ product.featured_image | image_url: width: 1200, height: 630, crop: 'center' }}">
  <meta property="og:image:width" content="1200">
  <meta property="og:image:height" content="630">
{%- elsif template contains 'article' and article.image -%}
  <meta property="og:image" content="https:{{ article.image | image_url: width: 1200, height: 630, crop: 'center' }}">
  <meta property="og:image:width" content="1200">
  <meta property="og:image:height" content="630">
{%- elsif settings.share_image -%}
  <meta property="og:image" content="https:{{ settings.share_image | image_url: width: 1200, height: 630, crop: 'center' }}">
  <meta property="og:image:width" content="1200">
  <meta property="og:image:height" content="630">
{%- endif -%}

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="{{ page_title | default: shop.name }}">
<meta name="twitter:description" content="{{ page_description | default: shop.description | strip_html | truncatewords: 30 | escape }}">

How to Configure & Audit Shopify Open Graph Tags (Step-by-Step)

Five proven engineering steps to deploy error-free social preview cards in Shopify (Liquid Social Meta Tags)

  1. 1

    Check layout/theme.liquid for Duplicate Meta Tags

    Scan `layout/theme.liquid` in your Shopify code editor to ensure only a single `{% render 'social-meta-tags' %}` tag is invoked inside `<head>`.

  2. 2

    Update snippets/social-meta-tags.liquid

    Ensure product and article images use `| image_url: width: 1200, height: 630, crop: 'center'` with an explicit `https:` prefix.

  3. 3

    Define Default Storefront Share Image

    Navigate to `Online Store > Themes > Customize > Theme Settings > Social Media` and upload a default 1200x630px social fallback graphic.

  4. 4

    Declare og:image:width & og:image:height

    Explicitly declare `<meta property='og:image:width' content='1200'>` and `<meta property='og:image:height' content='630'>` to speed up initial crawler rendering.

  5. 5

    Validate in OmniSEO Social Previewer

    Paste your live Shopify store URL or test inputs into our validator to inspect timeline previews for Twitter, LinkedIn, Facebook, and Discord.

Shopify Open Graph & Social Card FAQ

Troubleshooting social crawler cache, image aspect ratio cropping, and platform implementation details

Why do Shopify product images get cropped weirdly on Facebook and Twitter?

Shopify product photos are typically uploaded in square (1:1) or vertical (3:4) formats. When shared on social networks expecting a 1.91:1 (1200x630) banner, platforms automatically crop the center, often cutting off product details. Using Shopify Liquid's `image_url: width: 1200, height: 630, crop: 'center'` filter generates an optimized rectangular banner specifically for social crawlers.

Why is Twitter / X showing a blank preview for my Shopify store?

Twitter requires absolute URLs starting with `https://`. In Shopify Liquid, filters like `image_url` output protocol-relative URLs (`//cdn.shopify.com/...`). If your theme does not prepend `https:`, Twitterbot will fail to fetch the image asset. Additionally, ensure `twitter:card` is set to `summary_large_image`.

How do I clear Facebook's cached preview for an updated Shopify product?

Facebook caches OpenGraph metadata for up to 30 days. To force an immediate refresh, paste your Shopify product URL into the official Facebook Sharing Debugger and click 'Scrape Again'. This updates Facebook's cache across Messenger, Instagram, and Facebook feeds instantly.

CMS & Framework Open Graph Validators

Switch presets to audit Open Graph tags, Twitter Cards, and image dimensions for your specific stack

Looking for universal social card previewing? Use the Universal Open Graph & Social Card Validator.

Related Tools & Next Workflow Steps

Complementary utilities to streamline your SEO audit, indexing, and content strategy.

Browse All 35 Utilities
New

OG & Twitter Card Image Safe-Zone Previewer

Upload social images to preview cropping on Facebook and Twitter, ensuring important content remains visible with safe-zone guides.

socialOpen
Popular

Twitter Card Previewer

Simulate Twitter / X timeline card previews, validate image aspect ratios (1.91:1 & 1:1), and generate exact twitter:card meta tags.

socialOpen
Updated

Facebook Open Graph Debugger

Simulate Facebook desktop and mobile feed previews, validate og:image 1.91:1 ratios, and inspect Open Graph tag integrity in real time.

socialOpen
Updated

Open Graph Meta Tag Generator

Generate production-ready Open Graph, Twitter Card, and standard SEO meta tags for HTML5, Next.js App Router, and React Helmet.

technicalOpen
Advertisement
AdSense Placeholder: Top Leaderboard Ad (728x90 / 320x50)

Displayed below main page header or above the tool container. • Zero CLS Container