How to work with metadata for Linkedin Posts on Next 13+

Hey Guys, Do u guys know how to generateMetadata() on Next 13+ for Linkedin Posts? If yes, could u provide an example, please!
1 Reply
Neto
Neto5mo ago
import { Metadata } from 'next'


// https://nextjs.org/docs/app/api-reference/functions/generate-metadata#opengraph

// https://www.linkedin.com/help/linkedin/answer/a521928/making-your-website-shareable-on-linkedin?lang=en

// either Static metadata
export const metadata: Metadata = {
title: '...',
openGraph: {
title: 'some'
}
}

// or Dynamic metadata
export async function generateMetadata({ params }) {
return {
title: '...',
}
}
import { Metadata } from 'next'


// https://nextjs.org/docs/app/api-reference/functions/generate-metadata#opengraph

// https://www.linkedin.com/help/linkedin/answer/a521928/making-your-website-shareable-on-linkedin?lang=en

// either Static metadata
export const metadata: Metadata = {
title: '...',
openGraph: {
title: 'some'
}
}

// or Dynamic metadata
export async function generateMetadata({ params }) {
return {
title: '...',
}
}
Want results from more Discord servers?
Add your server