Skip to content

og:description missing

When your page is shared on social platforms, og:description provides the text that appears below the title in the preview card. Without it, most platforms show blank space or generate something from the page body with unpredictable results. A good description increases engagement on shared links.

Add <meta property="og:description" content="..." /> to your page <head>. The value is usually the same as your <meta name="description">, but you can write a more social-oriented version if it fits the context. Slightly shorter and more direct tends to work well.

app/layout.tsx
export const metadata = {
title: 'My Site',
description: 'Site description used by search engines.',
openGraph: {
title: 'My Site',
description: 'Social-friendly description for share previews.',
url: 'https://example.com',
images: [{ url: 'https://example.com/og.png' }],
},
}
import Head from 'next/head'
export default function Home() {
return (
<>
<Head>
<meta name="description" content="Site description used by search engines." />
<meta property="og:description" content="Social-friendly description for share previews." />
</Head>
<main>Content</main>
</>
)
}
<svelte:head>
<meta name="description" content="Site description used by search engines." />
<meta property="og:description" content="Social-friendly description for share previews." />
</svelte:head>
<script setup>
useSeoMeta({
description: 'Site description used by search engines.',
ogDescription: 'Social-friendly description for share previews.',
})
</script>
src/layouts/Layout.astro
---
interface Props {
title: string
description: string
}
const { title, description } = Astro.props
---
<!doctype html>
<html lang="en-GB">
<head>
<title>{title}</title>
<meta name="description" content={description} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
</head>
<body><slot /></body>
</html>
<meta name="description" content="Site description used by search engines." />
<meta property="og:description" content="Social-friendly description for share previews." />
Terminal window
curl -s https://example.com | grep -i 'og:description'

Re-run the audit to confirm the check passes:

Terminal window
npx orino audit https://example.com