A Comprehensive Guide to Metadata: Open Graph, X Cards, and Dublin Core

Metadata is the foundation of how we share, categorise, and discover content online. Though often overlooked, proper metadata implementation ensures that digital assets are well-represented across platforms, search engines, and databases.

This guide explores three widely-used metadata formats-Open Graph, X Cards (formerly Twitter Cards), and Dublin Core-detailing their purpose, implementation, and current best practices for 2026.

TL;DR

  • Open Graph is the de facto standard for social sharing, supported by Facebook, LinkedIn, Slack, Discord, WhatsApp, iMessage, and most platforms that generate link previews.
  • X (formerly Twitter) Cards still use twitter:* tags, but X’s crawler falls back to Open Graph tags when Twitter-specific tags are absent. Only twitter:card is strictly required.
  • Dublin Core remains the standard for library, museum, and academic resource description, with 15 core elements and an active maintenance agency (DCMI Usage Board) for ISO 15836.
  • Duplicate og:* and twitter:* tags are unnecessary-Twitter has supported Open Graph fallback since 2021. Use og:* for all platforms and add only twitter:card for X.
  • Absolute HTTPS URLs are mandatory for og:image and twitter:image-relative paths fail because social crawlers request images directly without a base URL context.

What Is Metadata?

Metadata is “data about data”-descriptive information that helps both machines and users understand what a piece of digital content represents.

TypeDescriptionExample
Descriptive metadataBasic information about a resourceTitle, author, publication date
Structural metadataHow a resource is organisedChapters in a book, page hierarchy
Administrative metadataResource management informationFile format, access rights, creation date

On the web, metadata serves three critical functions:

  • How content is shared across social platforms (Open Graph, X Cards)
  • How search engines understand and rank web pages (SEO)
  • How digital resources are archived and retrieved (Dublin Core)

Open Graph: The Universal Social Sharing Standard

The Open Graph protocol was introduced by Facebook in 2010 to allow web pages to become “rich objects” within a social graph. It standardises how URLs shared on platforms like Facebook, LinkedIn, Slack, Discord, WhatsApp, iMessage, and Telegram are displayed.

Why Open Graph Matters

According to a 2024 study, pages with fully implemented Open Graph tags experience a 40% higher engagement rate on social shares compared to those without. A/B tests by HubSpot in 2025 showed that a link with an optimised Open Graph image and description achieved a 2.3× higher click-through rate than the same link with a generic auto-generated preview.

Key Open Graph Tags

TagPurposeCharacter Limit
og:titleThe title of your content~60–70 characters (Facebook truncates at ~88, LinkedIn at ~70)
og:descriptionA short description of the page120–160 characters (Facebook ~200, LinkedIn ~120)
og:imageURL to an image representing the contentMust be absolute HTTPS URL
og:urlThe canonical URL of the pageFull absolute URL
og:typeThe type of object (e.g., “article”, “website”, “video”)One of the defined Open Graph types
og:site_nameThe name of the websiteOptional
og:image:widthWidth of the image in pixelsImproves preload performance
og:image:heightHeight of the image in pixelsImproves preload performance

Minimum Implementation

Every public page should declare at least four properties: og:title, og:description, og:image, and og:url.

<head>
 <meta property="og:title" content="Complete Guide to Metadata" />
 <meta property="og:description" content="Learn about Open Graph, X Cards, and Dublin Core." />
 <meta property="og:image" content="https://example.com/images/metadata.png" />
 <meta property="og:url" content="https://example.com/metadata-guide" />
 <meta property="og:type" content="article" />
 <meta property="og:site_name" content="Example Site" />
 <meta property="og:image:width" content="1200" />
 <meta property="og:image:height" content="630" />
</head>

Open Graph Image Best Practices

  • Recommended size: 1200×630 pixels (1.91:1 aspect ratio)-this is the common optimum for Facebook, LinkedIn, and WhatsApp
  • Use HTTPS absolute URLs: Relative paths and protocol-relative URLs fail in Slack, Discord, and other platforms
  • Use PNG or JPG: Avoid WebP (some platforms still lack support) and SVG (not rendered)
  • Specify width and height:og:image:width and og:image:height improve preload performance

X Cards: The Platform-Specific Format

X (formerly Twitter) Cards are metadata tags that control how links appear when shared on X. The tags still use the twitter:* naming convention-calling them “X Cards” would make the settings less recognisable.

Current Status (2026)

The platform is now called X, but the protocol names remain twitter:card, twitter:title, twitter:description, and twitter:image.

Important: X removed much of its Twitter Card documentation, but the metadata system still works. Open Graph is the de facto standard, and Twitter Cards have become a compatibility patch.

Key X Card Tags

TagPurposeNotes
twitter:cardDeclares the embed layoutsummary or summary_large_image (recommended)
twitter:titleEmbed titleOptional-X falls back to og:title
twitter:descriptionEmbed summaryOptional-falls back to og:description
twitter:imageImage URLOptional-falls back to og:image
twitter:siteWebsite’s X handleOnly useful with verified accounts
twitter:image:altAlt text for the imageUp to 420 characters

Minimum Implementation

Since X falls back to Open Graph tags, you only need to add the card type:

<head>
 <!-- Open Graph tags provide the base -->
 <meta property="og:title" content="Complete Guide to Metadata" />
 <meta property="og:description" content="Learn about Open Graph, X Cards, and Dublin Core." />
 <meta property="og:image" content="https://example.com/images/metadata.png" />
 <meta property="og:url" content="https://example.com/metadata-guide" />
 <!-- X-specific tag (only required one) -->
 <meta name="twitter:card" content="summary_large_image" />
</head>

Duplicating og:* and twitter:* tags is unnecessary and can cause parser priority conflicts. Twitter has supported Open Graph fallback since 2021.

X Card Image Specifications

Card TypeBest ForImage Requirements
summaryPages where the image should appear as a smaller thumbnailSquare image, minimum 144×144 pixels
summary_large_imagePosts, products, and landing pages where the image should be prominentLandscape image near 2:1 ratio, minimum 300×157 pixels

Recommended default: 1200×630 pixels-works well for Open Graph previews and the large X Card format.

File limits: Maximum 4096×4096 pixels, under 5MB, supported formats JPG, PNG, WEBP, GIF (animated uses only the first frame). SVG is not supported.

X Card Validator

X has deprecated its Card Validator tool. To test X Cards:

  1. Paste the URL into the X composer to see a live preview
  2. Use Facebook’s Sharing Debugger for Open Graph validation
  3. Use third-party preview tools

Dublin Core: The Resource Description Standard

The Dublin Core Metadata Initiative (DCMI) developed a standardised set of metadata elements for organising digital resources, particularly in libraries, museums, and academic institutions. Unlike Open Graph and X Cards, which focus on social sharing, Dublin Core is designed for resource description and discovery.

Current Status (2026)

The DCMI Usage Board currently serves as the maintenance agency for ISO 15836. A new Chinese national standard (GB/T 25100.1-2025) for Dublin Core was published on 31 October 2025 and took effect on 1 May 2026.

The 15 Core Dublin Core Elements

Dublin Core evolved from the original 13 elements to a stabilised 15-element set:

ElementDescription
titleThe name of the resource
creatorThe entity responsible for the content
subjectThe topic or subject of the resource
descriptionA summary of the resource
publisherThe organisation that published the resource
contributorAn entity that contributed to the resource
dateThe date of publication or creation
typeThe nature or genre of the resource
formatThe file format, physical medium, or dimensions
identifierAn unambiguous reference to the resource (e.g., URL, DOI)
sourceA related resource from which the described resource is derived
languageThe language of the content
relationA related resource
coverageThe spatial or temporal topic of the resource
rightsInformation about rights and usage

Implementation Example

<head>
 <meta name="DC.title" content="Complete Guide to Metadata" />
 <meta name="DC.creator" content="John Doe" />
 <meta name="DC.subject" content="Metadata" />
 <meta name="DC.description" content="A guide to Open Graph, X Cards, and Dublin Core." />
 <meta name="DC.publisher" content="Example Publisher" />
 <meta name="DC.date" content="2026-08-01" />
 <meta name="DC.type" content="Text" />
 <meta name="DC.format" content="text/html" />
 <meta name="DC.identifier" content="https://example.com/metadata-guide" />
 <meta name="DC.language" content="en" />
 <meta name="DC.rights" content="© 2026 Example Publisher" />
</head>

When to Use Dublin Core

Dublin Core is essential for:

  • Libraries and archives: Resource cataloguing and discovery
  • Academic institutions: Research publication metadata
  • Museums and cultural heritage: Object description
  • Digital repositories: Long-term preservation and retrieval
  • Government publications: Official document metadata

Fallback Hierarchy

Social platforms and search engines handle metadata in a specific order of precedence:

  1. Platform-specific tags (e.g., twitter:card)
  2. Open Graph tags (og:title, og:description, og:image)
  3. Standard HTML tags (title, meta description)
  4. Body content (first heading, first image, etc.)

X (formerly Twitter) will fall back to Open Graph tags when Twitter-specific tags are absent. This means you can implement only og:* tags plus twitter:card and have consistent previews across all platforms.

Testing and Validation

Testing Tools

ToolPurpose
Facebook Sharing DebuggerTest Open Graph tags and force re-scrape
LinkedIn Post InspectorTest LinkedIn previews
X ComposerTest X Cards (Card Validator deprecated)
Open Graph Image PreviewPreview tags across platforms

Common Issues and Fixes

IssueCauseFix
Preview shows wrong imageMissing or incorrect og:imageAdd absolute HTTPS URL and correct dimensions
Preview won’t updatePlatform caches first scrapeForce re-scrape with debugger tools
No preview at allMissing required og:* tagsAdd minimum four properties
Image shows as brokenRelative path usedUse absolute HTTPS URL
Title truncatedToo longKeep under 60–70 characters
Description cut offToo longKeep at 120–160 characters

Best Practices for Metadata Implementation

General Principles

PracticeWhy It Matters
Use absolute HTTPS URLsSocial crawlers request images directly without base URL context
Don’t duplicate Open Graph and X tagsTwitter supports Open Graph fallback since 2021; duplication can cause parser conflicts
Use summary_large_image as defaultGives shared links more visual weight
Use page-specific imagesAvoid reusing the same logo or generic fallback everywhere
Place metadata early in the <head>Bots that shorten fetching need to read tags early
Validate before shippingTest with debuggers before going live

Platform-Specific Considerations

PlatformNotes
FacebookTruncates title at ~88 characters, description at ~200
LinkedInTruncates title at ~70 characters, description at ~120
XFalls back to Open Graph; only twitter:card is required
Slack/DiscordUse og:* tags; relative paths break previews

Dynamic Content

For dynamically generated pages (SPAs, CMS-driven sites):

  • Server-side rendering (SSR) or static generation (SSG) is required-clientside JavaScript-injected meta tags are not read by crawlers
  • Next.js: Use next/head or generateMetadata in App Router
  • Nuxt 3: Use useSeoMeta + useOpenGraph composables
  • Static sites: Ensure templates map front matter to meta tags

Key Takeaways

  1. Open Graph is the universal standard for social sharing. It is supported by Facebook, LinkedIn, Slack, Discord, WhatsApp, iMessage, and most other platforms.
  2. X Cards are now a compatibility layer. Use only twitter:card; the platform falls back to Open Graph for title, description, and image.
  3. Pages with full Open Graph implementation see 40% higher engagement on social shares. Optimised images and descriptions achieve 2.3× higher CTR.
  4. Use the 1.91:1 ratio for social images. 1200×630 pixels works for Facebook, LinkedIn, WhatsApp, and X Cards.
  5. Dublin Core is maintained and active. The DCMI Usage Board serves as the maintenance agency for ISO 15836, and a new Chinese national standard took effect in May 2026.
  6. Place metadata early in the <head> -bots that shorten fetching need to read tags within the first 5–10 KB.
  7. Test before deployment. Use debugger tools-a single malformed URL or missing required field can break previews.

Conclusion

Metadata is the backbone of content sharing and discovery in the digital space. Open Graph has become the de facto standard for social sharing, supported across virtually every platform that generates link previews. X Cards remain relevant but have effectively become a compatibility layer-only twitter:card is strictly required, as X falls back to Open Graph for all other properties.

Dublin Core continues to serve its specialised role in libraries, museums, and academic institutions, with active maintenance and recent standard updates.

For most websites, the practical implementation is straightforward: use og:* tags for all platforms, add twitter:card summary_large_image for X, and use absolute HTTPS URLs for all image references. Test with debuggers before deployment, and ensure metadata is placed early in the for optimal crawler performance.

Resources

Need help implementing metadata for your website? Playful Sparkle has been engineering digital products since 2004, offering SEO & Digital Marketing, Web Development, and Branding & Strategy services. Our team can help you implement Open Graph, X Cards, and Dublin Core metadata to maximise your content’s visibility across all platforms. Contact us to discuss how we can help you improve your digital presence.

Was this helpful - Post
Zsolt Oroszlány

Zsolt Oroszlány

Founder & Chief Creative Officer of Playful Sparkle since 2004, combining business leadership, digital strategy, design, and software engineering to help organizations build effective digital solutions. Regularly publishes insights on web development, SEO, design, and emerging technologies.