#OG images not working

7 messages · Page 1 of 1 (latest)

whole otter
#

I have a dynamic route, for i'm generating an og image (without edge runtime). When looking at the header the og image is present, but it won't appear in the link previews. What am I messing?
Here are the og head tags from the page.

scenic remnantBOT
#

🔎 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)

whole otter
#
  params,
}: {
  params: { episodeId: string }
}): Promise<Metadata> {
  return {
    openGraph: {
      images: [`${process.env.NEXT_PUBLIC_DEPLOYMENT_URL}/api/og?episodeId=${params.episodeId}`],
    },
  }
}```
#

this is how i add them to the metedata

fathom cloud
#

Could be because the image url is http instead of https on your Server, or is this screenshot from your development server?

whole otter
#

the server is on http

fathom cloud
#

Hmm I've never used http urls in my og:image so that could be the problem, maybe it gets blocked because of security reasons