---
title: "How to fix open graph tags on a vibe coded site"
description: "Every link to your site shows the same preview card. How open graph tags work, how to check them, and how to give each page its own title and image."
author: "Vimanyu Aggarwal"
date: "2026-12-01"
canonical: "https://vunora.ai/blog/open-graph-tags-vibe-coded-site"
---

# How to fix open graph tags on a vibe coded site

![A hand holding a phone with a social app open on the screen](https://vunora.ai/blog/open-graph-tags-vibe-coded-site.jpg)

You paste your pricing page into Slack, or into a LinkedIn post, and the card that appears is your home page. Same title, same picture, same line of text. Share the about page and you get the same card again. On some sites the picture is not even yours: it is the tool's own image, or a screenshot of the app.

The card comes from a handful of tags in each page's head, called open graph tags. When every page sends the same set, every link looks the same. This post shows how to see what each platform reads, how to give each page its own card, and how to clear a card that a platform has already stored. Most of it you can do without going to a developer.

## What open graph tags do

The Open Graph protocol site describes the idea in one line: it "enables any web page to become a rich object in a social graph." In practice, it is how LinkedIn, Facebook, Slack and many others build the card for a link. Our [open graph](https://vunora.ai/glossary/open-graph) entry has the short version.

The protocol names four tags every page should carry. Here they are as the protocol defines them:

- `og:title`: "The title of your object as it should appear within the graph"
- `og:type`: "The type of your object", such as `website` or `article`
- `og:image`: "An image URL which should represent your object within the graph."
- `og:url`: "The canonical URL of your object that will be used as its permanent ID in the graph"

LinkedIn's help page lists `og:title`, `og:image`, `og:description` and `og:url` as the tags a page needs, so add a description too. On a pricing page, the set looks like this:

```html
<meta property="og:title" content="Pricing | Your site" />
<meta property="og:description" content="Plans for every team size, and what each one includes." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://yourdomain.com/pricing" />
<meta property="og:image" content="https://yourdomain.com/share/pricing.png" />
```

The `og:url` should be the same address as the page's canonical tag, on your own domain. If the tool's subdomain still serves your pages, fix that first with [the canonical tag guide](https://vunora.ai/blog/canonical-tag-lovable-subdomain), or cards will carry the wrong address.

With no tags at all, the platform guesses. Meta's guide for webmasters says that without them its crawler "uses internal heuristics to make a best guess" about the title, description and picture.

## Why every link shows the same card

A card is built from the HTML the platform's robot fetches. The robot does not wait for your code to run.

The Next.js docs name Facebook's robot among the "HTML-limited bots that can't execute JavaScript (e.g. `facebookexternalhit`)." For those robots, Next.js holds the response until the page's tags are ready.

Slack's docs say its link robot "fetches as little of the page as it can (using HTTP Range headers) to extract meta tags about the content."

So the tags have to be in the HTML your server sends. On a site whose pages are built in the browser, every address sends the same `index.html` file, and that file has one set of tags. Every card shows them. Tags your code adds after the page loads never reach the card. Our [client-side rendering](https://vunora.ai/glossary/client-side-rendering) entry explains why the file is the same for every address.

### Lovable has two generations

Lovable's page on site metadata draws the line by date. Apps created on or after 13 May 2026 use TanStack Start and can carry a title, description and share image for each page. For the rest, the page is direct: "Older React + Vite apps carry one set of metadata for the whole site." Older apps also show a generic Lovable share image until you ask Lovable to replace it. And if an app sets no share image, Lovable serves "the latest screenshot of your app in its place."

Lovable's SEO guide adds that older apps send a pre-built copy of each page to verified crawlers, and lists "social-preview bots" among them. It still says: "Lovable apps serve those tags to social-preview bots, but each page still needs its own Open Graph tags."

So on an older Lovable app, the card robot gets a page, with the one set of tags the whole site shares. On a new app, ask Lovable for a page's own set by naming the page.

Most vibe coded sites do carry the basic head tags. In [our study of 517 vibe coded home pages](https://vunora.ai/research/crawler-first-read), 505 had a title and 494 had a description in Google's first look. The study read home pages only, so it cannot tell you whether your other pages share those tags. The checks below can.

## Check what each platform sees

**Open graph tags, page by page**

- Not done yet: Each page sends its own og:title and og:description
- Not done yet: Each page sends an og:image with a full https address
- Not done yet: og:url names the page on your own domain
- Not done yet: The image is at least 1200 by 627 pixels
- Not done yet: Two different pages give two different cards in a debugger

_Run the commands below, then confirm in each platform's own tool._

Start in a terminal. Ask two different pages for their tags:

```bash
curl -s https://yourdomain.com/pricing | grep -i 'property="og:'
curl -s https://yourdomain.com/about | grep -i 'property="og:'
```

If both print the same lines, every card is the same. If neither prints anything, the tags are not in the HTML your server sends.

One catch on an older Lovable app: Lovable sends its pre-built copy only to verified crawlers. Its SEO guide says "Unverified bots and link checkers see the regular single-page app," and a `curl` from your laptop is one of those. So check the platform's own tool before you trust what `curl` shows:

- **Facebook and Instagram:** Meta's Sharing Debugger. Meta says "It will show which meta tags the crawler scrapes as well as any errors or warnings."
- **LinkedIn:** the Post Inspector, at linkedin.com/post-inspector.
- **Slack:** paste the link into a message to yourself.

## Give each page its own tags

Where you set the tags depends on how your site builds its pages.

### On a Next.js site

Set `openGraph` in each page's metadata. The Next.js docs show this input:

```jsx
export const metadata = {
  openGraph: {
    title: 'Next.js',
    description: 'The React Framework for the Web',
    url: 'https://nextjs.org',
    siteName: 'Next.js',
    images: [{ url: 'https://nextjs.org/og.png', width: 800, height: 600 }],
    type: 'website',
  },
}
```

Watch one trap. Next.js merges a page's metadata over its layout's shallowly. The docs give the result: "All `openGraph` fields from `app/layout.js` are **replaced** in `app/blog/page.js` because `app/blog/page.js` sets `openGraph` metadata." So a page that sets only its own `og:title` loses the image your layout set. Give each page the whole group, or share the image through a variable as the docs show.

The same docs mark every image address "Must be an absolute URL", and offer a file-based `opengraph-image` that writes the tags for you.

### On a Lovable app

On an app made on or after 13 May 2026, ask Lovable for the page's own title, description and share image, and name the page. Lovable's metadata page says the changes reach the live site on the next publish, and its Social & search card shows them before you publish.

On an older app, one set covers the whole site. Write that set for the site as a whole, with your own image, so at least the card is yours.

### On a Vite and React app

The tags in `index.html` are the ones every card shows. Replace the starter title, add a description and an `og:image`, and write them for the whole site. Per-page cards need each page built as HTML on the server or at build time. [The Vite and React SEO guide](https://vunora.ai/blog/vite-react-seo) covers pre-building the routes you know, and [the JavaScript SEO guide for vibe coded sites](https://vunora.ai/blog/vibe-coded-website-seo-guide) covers the choice between the ways to do it.

### The image itself

LinkedIn's help page gives the numbers: "Minimum image dimensions: 1200 (w) x 627 (h) pixels", a "Recommended ratio: 1.91:1" and a "Max file size: 5 MB". Meta's guide asks you to add `og:image:width` and `og:image:height` so the image shows the first time someone shares the page.

**Prompt for Claude Code or Cursor**

```text
Check the open graph tags on this site. Report first, and change nothing until I say yes.

1. Where are og:title, og:description, og:image, og:url and og:type set? Name the file and line for each.
2. List every route and the og:title it sends. Flag routes that share the same og:title, og:description or og:image.
3. Flag any og:image or og:url that is a relative path, uses http://, or names a lovable.app or vercel.app address.
4. Are these tags in the HTML the server sends, or added in the browser after the page loads?
5. If this is Next.js: does any page set openGraph without an image, and so drop the layout's image?

My domain is: [your domain]. Propose the smallest fix for each problem.
```

Paste it in your tool, opened in your site's repository.

## Clear a stale card

You fixed the tags, and the old card still shows. Platforms keep what they fetched.

- **Meta:** "Images are cached based on the URL and won't be updated unless the URL changes." Give a new image a new file name, then paste the page into the Sharing Debugger. Meta says "The debugger also triggers a scrape of your page."
- **Slack:** its docs say link responses "are cached globally across the service for around 30 minutes." Wait, then paste the link again.
- **LinkedIn:** run the page through the Post Inspector before you post it.

## How Vunora helps with share cards

In Vunora, open a page, then its SEO tab, then Social card. The section holds a Social title, a description, a Social image (1200x630) and a Live preview of the card. Choose from library opens your images and crops the one you pick to the card's shape.

The card's title and description are the page's search title and description, the same two boxes as in Search appearance. One edit changes both. When the page's own code sets its og: tags from fields Vunora found, the boxes edit those tags instead. When your site sets no share tags, the preview says so: "Your site sets no share tags, so this card shows the page title and description. That is what a social site shows."

On a post, the same fields sit under Settings, in Search and social, behind the row "Social card, FAQ, links, schema".

On a Vite site, the tags every page shares live in `index.html`. The SEO tab's Site head section lists the texts it finds there, such as the title, the description, `og:title` and `og:description`, under the line "Every page of your site shares these." Vunora saves an edit there to your repository when write-back to the repository is on in the site's settings. The [import guide](https://vunora.ai/blog/import-your-nextjs-or-vite-site) covers how Vunora reads a Next.js, Vite or TanStack Start site from GitHub.

Vunora's [SEO checklist](https://vunora.ai/product/seo) catches the most common cause of identical cards: identical titles and descriptions. Two of its checks:

**Two checks that catch identical cards**

|                   | Passes when                                             | Fix                             |
| ----------------- | ------------------------------------------------------- | ------------------------------- |
| Page titles       | A title of 30 to 60 characters, different on every page | Write page titles with AI       |
| Meta descriptions | 70 to 155 characters, different on every page           | Write meta descriptions with AI |

_Check names, rules and fix buttons as the app shows them._

A failing page says why, such as that it "shares its title with another page". The AI fix writes one draft per page, and nothing goes live until you publish it. The [checklist walkthrough](https://vunora.ai/blog/check-every-page-against-the-seo-checklist) shows each screen.

## Where this stops

- **The checklist has no check for og:image.** Use Meta's Sharing Debugger and LinkedIn's Post Inspector to see the card itself.
- **Vunora does not change how your site builds pages.** On a Vite app, per-page cards need pages built on the server or at build time. That stays a developer's job.
- **Vunora does not clear a platform's stored card.** Each platform's own tool does that.
- **Vunora never hosts your site.** Head changes land in your repository as a commit or a pull request, and your host deploys them.

## Questions

### Why does LinkedIn show an old picture after I changed it?

LinkedIn stored the card from its last fetch. Give the new image a new file name, so its address changes, and run the page through the Post Inspector before you post.

### Do I need Twitter card tags as well?

The Next.js docs say the Twitter specification "is (surprisingly) used for more than just X". Open graph tags cover most platforms. If X matters to you, add `twitter:card` with `summary_large_image` as the Next.js docs show, and test the card by posting it.

### What happens if a page has no og:image?

The platform picks one or shows none. Meta's crawler makes "a best guess" from the page, and LinkedIn's help page lists `og:image` among the tags a page needs. Name the image yourself, so the card shows the picture you chose.

### Why does my Lovable app show a screenshot on every link?

Lovable's metadata page says that when an app sets no share image, Lovable serves "the latest screenshot of your app in its place." Ask Lovable to set your own image. On an app made before 13 May 2026, that one image covers every page.

## Sources

- The Open Graph protocol, read December 1, 2026: <https://ogp.me/>
- LinkedIn Help, make your website shareable on LinkedIn, read December 1, 2026: <https://www.linkedin.com/help/linkedin/answer/a521928>
- Meta for Developers, a guide to sharing for webmasters, read December 1, 2026: <https://developers.facebook.com/docs/sharing/webmasters/>
- Slack, Slack robots, read December 1, 2026: <https://api.slack.com/robots>
- Next.js, generateMetadata, read December 1, 2026: <https://nextjs.org/docs/app/api-reference/functions/generate-metadata>
- Lovable, change your site title, favicon and social preview, read December 1, 2026: <https://docs.lovable.dev/features/site-metadata>
- Lovable, SEO and AI search guide, read December 1, 2026: <https://docs.lovable.dev/tips-tricks/seo-geo>
- Vunora, what Google gets from a vibe coded home page, measured November 26, 2026: <https://vunora.ai/research/crawler-first-read>

_Drafted with AI help and checked against the product._
