#og:type cannot be set to "product"

6 messages · Page 1 of 1 (latest)

fresh mist
#

I have read the documentation on next.js about metadata and cannot find an answer to my question there or anywhere else for that matter so this is my last resort. Problem: I'm trying to generate metadata for a product page dynamically using next.js 13 app function as follows:


(code to generate down below variables)

 return {
        title: title,
        description: description,
        keywords: keywords,
        openGraph: {
            images: [
                imageUrl
            ], 
            title: title,
            description: description,
            url: 'products/' + params.slug,
            type: 'product',
        },
        alternates: {
            canonical: 'products/' + params.slug,
        } 
    } 
}```

and i'm getting an error in the browser saying: "Error: Invalid OpenGraph type: product".  If I set it to e.g. "website", it works but I want to be able to set it to product. How can i go about this?
upbeat windBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

latent anvil
#

i cant see 'product' as a valid type here

fresh mist
#

Yeah I saw that too, but it says if you google it that your supposed to be able to type it, according to Facebook for example.

latent anvil
#

i cant see it on og protocol site