Open Graph fixes · Nuxt
Fix missing Open Graph tags in Nuxt
In Nuxt the Open Graph tags live in <script setup>, which calls the useSeoMeta composable with ogTitle, ogDescription and ogImage keys. Below is the complete snippet plus the one-tag fix for each of the 10 core tags our scanner checks, so you can patch exactly what the scan flagged.
The fix
Add this to <script setup>
// in <script setup>
useSeoMeta({
title: 'Your page title',
description: 'A one or two sentence summary of this page.',
ogTitle: 'Your page title',
ogDescription: 'A one or two sentence summary of this page.',
ogImage: 'https://example.com/og.png',
ogUrl: 'https://example.com/page',
ogSiteName: 'Your site name',
twitterCard: 'summary_large_image',
});- Open <script setup> in your Nuxt project.
- Paste the snippet and replace the sample title, description, image and URL with your own.
- Deploy, then scan the live URL: the scanner re-checks all 10 tags and lists what is still missing.
One tag at a time
Fix a single missing tag in Nuxt
title
useSeoMeta({ title: 'Your page title' });meta description
useSeoMeta({ description: 'A one or two sentence summary of this page.' });og:title
useSeoMeta({ ogTitle: 'Your page title' });og:description
useSeoMeta({ ogDescription: 'A one or two sentence summary of this page.' });og:image
useSeoMeta({ ogImage: 'https://example.com/og.png' });og:url
useSeoMeta({ ogUrl: 'https://example.com/page' });og:type
useSeoMeta({ ogType: 'website' });og:site_name
useSeoMeta({ ogSiteName: 'Your site name' });twitter:card
useSeoMeta({ twitterCard: 'summary_large_image' });twitter:image
useSeoMeta({ twitterImage: 'https://example.com/og.png' });Check the Nuxt fix on a live URL
FAQ
Common questions
Where do Open Graph tags go in Nuxt?
In <script setup>. The snippet calls the useSeoMeta composable with ogTitle, ogDescription and ogImage keys.
Which Open Graph tags does Nuxt need?
At minimum og:title, og:description, og:image and og:url, plus twitter:card. The scanner checks 10 tags in total: title, meta description, og:title, og:description, og:image, og:url, og:type, og:site_name, twitter:card, twitter:image.
How do I confirm the Nuxt fix worked?
Deploy, paste the live URL into the free scanner, and check that every tag above passes. The simulator then draws the card for 30 platforms.