Skip to content
Every tutorial here is 100% free — and always will be
LSLovableStudent

How do I change the social sharing image?

Last checked 31 Aug 2026

Short answer

Ask Lovable to update the Open Graph image, or edit the og:image meta tag in your page head and upload the image asset — this controls the preview card shown when your link is shared on social platforms.

What this image is

When someone pastes your site's link into Slack, WhatsApp, X, LinkedIn or Facebook, those platforms read Open Graph meta tags to build a preview card — an image, title and description. The image comes from the og:image (and often twitter:image) meta tag.

How to set it in Lovable

Set the social sharing image (Open Graph image) to this file [attach image], sized around 1200x630px, and make sure it applies to og:image and twitter:image.

Or manually:

  1. Prepare an image roughly 1200x630px (the standard OG ratio) — square-ish crops from other aspect ratios often get cropped badly on some platforms.
  2. Upload it as a project asset (e.g. in public/).
  3. In index.html (or wherever your <head> metadata is managed), set:
<meta property="og:image" content="https://yourdomain.com/social-image.png" />
  1. Use an absolute URL (including https://yourdomain.com/...), not a relative path — most social crawlers won't resolve relative image paths correctly.
  2. Publish, then re-scrape the link with a debugging tool (see below) since platforms cache old previews aggressively.

What usually goes wrong

  • Old image keeps showing after you change it — this is a platform-side cache, not a Lovable bug. Use Facebook's Sharing Debugger or LinkedIn's Post Inspector to force a re-scrape.
  • Relative image path — content="/social-image.png" often fails silently on crawlers that don't resolve it against your domain; always use the full https:// URL.
  • Wrong dimensions — very tall or very wide images get cropped unpredictably; stick close to 1200x630.

This sits alongside the rest of your page metadata — see how do I add Open Graph metadata and how do I change meta titles.

Sources

Was this answer helpful?

Related questions

Website made, maintained and hosted by PromptSites.com

PromptSites logo