Open Graph & favicon preview

See exactly how your Lovable app looks when someone shares it on Google, X, LinkedIn, Facebook or Slack. We check your preview image, favicon and meta tags, and tell you what to fix.

Why link previews matter for your Lovable app

When you launch on X, post in a Slack community or share on LinkedIn, the preview card is the first thing people see. A clear image and title get more clicks; a blank card or the default Lovable image looks unfinished.

Social networks build that card from Open Graph meta tags in your raw HTML. They don't run JavaScript, so tags set by React after the page loads are ignored. The tags must be in index.html.

The tags every Lovable app needs

<meta property="og:title" content="MyApp – Plan meals in minutes" />
<meta property="og:description" content="Weekly meal plans and grocery lists for busy families." />
<meta property="og:image" content="https://myapp.com/og-image.png" />
<meta property="og:url" content="https://myapp.com/" />
<meta name="twitter:card" content="summary_large_image" />
<link rel="icon" href="/favicon.png" type="image/png" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />

Recommended image sizes

AssetSizeFormat
Open Graph image (og:image)1200×630 px (1.91:1)PNG or JPG
X large card (twitter:image)1200×630 px, or reuse og:imagePNG or JPG
FaviconSquare, 48×48 px or largerPNG, ICO or SVG
Apple touch icon180×180 pxPNG

How to fix it in Lovable

  1. Create a 1200×630 image showing your app name and what it does, and a square icon.
  2. Upload them to the chat and ask Lovable to save them in the public/ folder as og-image.png, favicon.png and apple-touch-icon.png.
  3. Ask it to update index.html: point og:image and twitter:image to the absolute URL of the new image, replace the default title and description, and declare the new icons.
  4. Publish, then run this preview again.

Networks cache previews: use the Facebook Sharing Debugger or the LinkedIn Post Inspector to refresh them.

Frequently asked questions

What size should an Open Graph image be?

Use 1200×630 pixels (a 1.91:1 ratio) in PNG or JPG. This size displays sharply on Facebook, LinkedIn, X and Slack. Keep text and logos away from the edges, since some networks crop slightly.

Why does my Lovable app show the Lovable image when shared?

New Lovable projects point og:image and twitter:image to Lovable's default preview image in index.html. Upload your own image to the public/ folder and update both tags with its absolute URL.

I updated my image but the old preview still shows. Why?

Social networks cache previews. Use the Facebook Sharing Debugger or the LinkedIn Post Inspector to force a refresh. Changing the image file name also helps.

Why doesn't my favicon show in Google results?

Google needs a favicon declared with a <link rel="icon"> tag, reachable by its crawler, and square (a multiple of 48×48 px is recommended). It can take a few days or weeks to update after a change.

Weekly digest

Subscribe to our newsletter

Stay curious about what's new with Lovable — get the latest projects and updates delivered to your inbox.

No spam. Unsubscribe anytime.