# From SEO to GEO, Part 2: OpenGraph, Social Cards, and Structured Data

> OpenGraph and Twitter Card tags shape your link previews, and JSON-LD tells machines what a page is and who wrote it. What each one does and how to check them.

- URL: https://blog.nimblepros.com/blogs/opengraph-social-cards-and-structured-data/
- Author: [Sarah Dutkiewicz](https://blog.nimblepros.com/authors/sadukie/)
- Published: 2026-12-02
- Series: [From SEO to GEO](https://blog.nimblepros.com/series/from-seo-to-geo/)
- Categories: [Software Development](https://blog.nimblepros.com/categories/software-development/)
- Publisher: [NimblePros](https://blog.nimblepros.com/)

---

*This post is part of **From SEO to GEO**, a series on how pages get found, shared, and cited - by search engines, social platforms, and AI answer engines.*

You've probably seen this happen. Someone drops a link in Slack or on LinkedIn, and instead of a nice card with a title, a summary, and an image, you get a bare URL. Or worse, a card with the wrong image, or a description from some random sidebar text. Nobody clicks it.

That card isn't magic. It's built from a handful of `<meta>` tags in the page's `<head>`. In [Part 1](../seo-fundamentals-that-still-matter/), we looked at the fundamentals search engines need: findability, canonicals, titles, descriptions, and freshness. In this post, we'll look at two more layers of metadata:

- **OpenGraph and Twitter Card tags**, which control how your links look when they're shared
- **Structured data (JSON-LD)**, which tells machines what a page *is*, who wrote it, and how it relates to everything else

The second one is where this series starts to turn toward AI, because the same metadata that powers rich results also helps answer engines attribute content correctly.

## OpenGraph: The Tags Behind Link Previews

The [Open Graph protocol](https://ogp.me/) was created at Facebook and introduced in 2010. The idea was to let any web page describe itself as an object in a social graph, with a title, a type, and an image. Facebook isn't the only one reading it anymore. LinkedIn, Slack, Microsoft Teams, Discord, Bluesky, iMessage, and many others build their previews from OpenGraph tags.

The spec has four **required** properties:

| Property | What it does |
|---|---|
| `og:title` | The title as it should appear in the preview |
| `og:type` | What kind of object this is, such as `article` or `website` |
| `og:image` | The image to show, as an absolute URL |
| `og:url` | The canonical URL of the page |

And a few **optional** ones that are worth adding:

| Property | What it does |
|---|---|
| `og:description` | A one- or two-sentence summary |
| `og:site_name` | The name of the overall site |
| `og:locale` | The language and region, such as `en_US` |
| `og:image:width`, `og:image:height` | The image dimensions, so platforms can lay out the card before downloading the image |
| `og:image:alt` | Alt text for the image |

When `og:type` is `article`, there's an extra set of `article:*` properties for publish and modified dates, authors, the section, and tags.

Here's what this blog sends for a post, trimmed down a bit:

```html
<meta property="og:title" content="From SEO to GEO, Part 2: OpenGraph, Social Cards, and Structured Data">
<meta property="og:description" content="OpenGraph and Twitter Card tags shape your link previews...">
<meta property="og:type" content="article">
<meta property="og:url" content="https://blog.nimblepros.com/blogs/opengraph-social-cards-and-structured-data/">
<meta property="og:image" content="https://blog.nimblepros.com/blogs/opengraph-social-cards-and-structured-data/opengraph-social-cards-and-structured-data.webp">
<meta property="og:image:width" content="1024">
<meta property="og:image:height" content="512">
<meta property="og:image:alt" content="From SEO to GEO, Part 2: OpenGraph, Social Cards, and Structured Data">
<meta property="og:site_name" content="NimblePros Blog">
<meta property="og:locale" content="en_US">

<meta property="article:published_time" content="2026-11-25T09:00:00Z">
<meta property="article:author" content="https://blog.nimblepros.com/authors/sadukie/">
<meta property="article:section" content="Software Development">
<meta property="article:tag" content="Software Development">
```

None of these values are typed by hand. They come from each post's front matter - the title, description, featured image, date, authors, and categories - through one Hugo partial. That's the real lesson here: **if your metadata depends on someone remembering to fill in tags, it'll drift.** Generate it from data you already have.

## Twitter Cards

X (formerly Twitter) has its own set of tags, called Twitter Cards. They overlap a lot with OpenGraph:

```html
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="From SEO to GEO, Part 2: ...">
<meta name="twitter:description" content="OpenGraph and Twitter Card tags shape...">
<meta name="twitter:image" content="https://blog.nimblepros.com/.../opengraph-social-cards-and-structured-data.webp">
<meta name="twitter:image:alt" content="From SEO to GEO, Part 2: ...">
```

The one that matters most is `twitter:card`. `summary` gives you a small square thumbnail next to the text. `summary_large_image` gives you a big image across the top of the card, which is what most people want for blog posts.

X falls back to OpenGraph tags for the title, description, and image when the `twitter:` versions are missing. Plenty of other platforms read `twitter:` tags too, so it's worth sending both.

## Getting the Image Right

The image does most of the work in a preview card, and it's the easiest part to get wrong:

- **Use a wide image.** Somewhere around 1.91:1 or 2:1 works across most platforms. Our featured images are 1024 by 512.
- **Use an absolute URL.** A relative path like `./image.webp` won't work - the platform fetching it doesn't know your domain.
- **Keep the important parts in the middle.** Some platforms crop the edges.
- **Make sure the image is publicly reachable.** If it's behind auth or blocked by `robots.txt`, the preview won't have one.
- **Set the dimensions and alt text.** Our audit found we had neither. Hugo already knew each image's size - we just weren't sending it.

## Testing Your Previews

Platforms cache previews aggressively. If you fix a tag after someone has already shared the link, the old preview may stick around until you ask the platform to fetch the page again. A few tools help:

- **[LinkedIn Post Inspector](https://www.linkedin.com/post-inspector/)** - shows what LinkedIn sees and refreshes its cache
- **[Facebook Sharing Debugger](https://developers.facebook.com/tools/debug/)** - the same for Facebook, with a "Scrape Again" button
- **[opengraph.xyz](https://www.opengraph.xyz/)** - previews how a URL will look across several platforms at once

Or just look at the HTML. `curl` the page and search for `og:`. If the tags aren't in the raw HTML - say, they're added by JavaScript after the page loads - most of these platforms won't see them.

## Structured Data: Telling Machines What a Page *Is*

OpenGraph describes how a page should look when it's shared. **Structured data** goes further: it describes what the page actually is, in a vocabulary search engines agree on.

That vocabulary is [schema.org](https://schema.org/), launched in 2011 by Google, Bing, and Yahoo, with Yandex joining shortly after. It defines types like `BlogPosting`, `Person`, `Organization`, `Product`, `Event`, and hundreds more, each with its own properties.

There are a few ways to add it to a page, but **JSON-LD** is the one Google recommends. It's a `<script type="application/ld+json">` block in the page, separate from your HTML markup, so you don't have to weave attributes through your templates.

Here's a simplified version of what this blog emits for a post:

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://blog.nimblepros.com/#organization",
      "name": "NimblePros",
      "url": "https://nimblepros.com/",
      "sameAs": [
        "https://github.com/nimblepros",
        "https://www.linkedin.com/company/nimblepros"
      ]
    },
    {
      "@type": "BlogPosting",
      "@id": "https://blog.nimblepros.com/blogs/opengraph-social-cards-and-structured-data/#article",
      "headline": "From SEO to GEO, Part 2: OpenGraph, Social Cards, and Structured Data",
      "datePublished": "2026-11-25T09:00:00Z",
      "dateModified": "2026-11-25T09:00:00Z",
      "author": [
        {
          "@type": "Person",
          "@id": "https://blog.nimblepros.com/authors/sadukie/#person",
          "name": "Sarah Dutkiewicz",
          "worksFor": { "@id": "https://blog.nimblepros.com/#organization" }
        }
      ],
      "publisher": { "@id": "https://blog.nimblepros.com/#organization" },
      "isPartOf": [
        {
          "@type": "CreativeWorkSeries",
          "name": "From SEO to GEO",
          "url": "https://blog.nimblepros.com/series/from-seo-to-geo/"
        }
      ]
    },
    {
      "@type": "BreadcrumbList",
      "itemListElement": [
        { "@type": "ListItem", "position": 1, "name": "NimblePros Blog" },
        { "@type": "ListItem", "position": 2, "name": "From SEO to GEO" },
        { "@type": "ListItem", "position": 3, "name": "From SEO to GEO, Part 2: ..." }
      ]
    }
  ]
}
```

The interesting part is the `@id` values. Each entity - the organization, the author, the post - gets a stable identifier, and other entities point to it. The post's `publisher` is the organization. The author `worksFor` the organization. The post `isPartOf` a series. Instead of a pile of disconnected facts, you get a small graph: **this article, written by this person, who works for this company, part of this series, published on this date.**

### Why That Matters

Search engines use structured data for **rich results**: breadcrumbs under a search result, article dates, author information, and so on. But the bigger value is clarity. Google talks about **E-E-A-T** - experience, expertise, authoritativeness, and trust - when describing what makes content high quality. Structured data doesn't give you any of those, but it makes the evidence explicit: who wrote this, what else they've written, who they work for, and where else they show up online (`sameAs`).

That's exactly the kind of information an AI answer engine needs too. When it pulls a fact from your page, it has to decide whether your page is a source worth citing, and it has to attribute it correctly. A page that clearly says who wrote it and when is easier to trust than one that doesn't.

### A Few Rules of Thumb

- **Mark up what's actually on the page.** Google's guidelines are clear that structured data should match the visible content. Don't add ratings, authors, or FAQs that readers can't see.
- **Don't expect every type to earn a rich result.** Google narrowed FAQ rich results to a small set of authoritative sites and dropped HowTo rich results in 2023. The markup can still help machines understand the page - just don't add it only for the search result treatment.
- **Validate it.** Use Google's [Rich Results Test](https://search.google.com/test/rich-results) to see what Google can use, and the [Schema Markup Validator](https://validator.schema.org/) to check that it's valid schema.org.
- **Generate it.** Like OpenGraph, this should come from your content's data, not from hand-edited JSON on each page.

## Where This Leaves Us

Between Part 1 and this post, we've covered the metadata layer that's been the backbone of SEO for more than a decade:

| Layer | Who reads it | What it does |
|---|---|---|
| Title, description, canonical | Search engines | Decides how your page shows up in results |
| OpenGraph and Twitter Cards | Social and chat platforms | Builds the preview card when a link is shared |
| Structured data (JSON-LD) | Search engines, increasingly AI | Describes what the page is and how it connects to people, organizations, and other pages |

All three come from the same source: good front matter, rendered by templates. Get that right once, and every page benefits.

## Up Next

Up to now, the goal has been to get a person to click. But more and more often, nobody clicks at all - the answer shows up right on the results page, or in a chat window, written by an AI. In the next post, we'll look at **that shift from ten blue links to one answer**, what "AI optimization" really means, and how this blog decides what AI crawlers can do with its content.

## Related Reading

- [From SEO to GEO, Part 1: The SEO Fundamentals That Still Matter](../seo-fundamentals-that-still-matter/) - findability, canonicals, titles, descriptions, and freshness
