Skip to content

Opengraph metadata custom property fields #55043

Closed Answered by mrsafalpiya
mrsafalpiya asked this question in App Router
Discussion options

You must be logged in to vote

The solution was to simple add the <meta property="foo" content="bar" /> in the page itself.

Example:

export default function Page() {
    return (
        <>
            <meta property="foo" content="bar" />
            
            {/* actual page contents */}
        </>
    );
}

Thanks to joulev in discord who found the fix at this help-forum.

Note that joulev quoted:

note that it is not documented so it may break at any moment, add a test case to check for this in your code
because who knows, next nextjs canary might break it

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dsimmons
Comment options

@dsimmons
Comment options

Answer selected by mrsafalpiya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants