The `og:image` meta tag uses a relative URL, causing social previews to render without an image.
By Seoxpert Editorial · Published
Social platforms like LinkedIn, Facebook, and Twitter require an absolute URL for `og:image`. If a relative URL is used, their crawlers can't fetch your image, resulting in link previews without images. This significantly reduces engagement and click-through rates for shared links.
Social shares of your pages will display no image, leading to lower visibility and engagement.
Automated crawlers parse the page and flag any `og:image` meta tag whose content attribute does not start with 'http://' or 'https://'.
Incorrect: Relative URL in og:image
<meta property="og:image" content="/images/social.png">Correct: Absolute URL in og:image
<meta property="og:image" content="https://yoursite.com/images/social.png">Next.js: Setting metadataBase for automatic absolutes
export const metadata = {
metadataBase: new URL('https://yoursite.com'),
openGraph: {
images: ['/images/social.png'], // will be resolved to absolute
},
};Social media crawlers resolve relative URLs against their own domain, not yours, resulting in broken image links.
Yes, both require absolute URLs for images in link previews. Relative URLs will not display images.
Yes, `twitter:image` and `og:image:secure_url` also require absolute URLs.
Verify that the `content` attribute starts with 'http://' or 'https://' and includes your full domain.
Run a scan to see if `og:image` Is a Relative URL affects your pages.
Scan my website →