Social Media Sharing Preview Broken in Lovable App
When you or your users share your Lovable app's links on social media (Facebook, Twitter/X, LinkedIn, iMessage), the preview shows incorrect information — wrong title, missing description, no image, or a generic fallback instead of your page-specific content.
Social sharing previews are crucial for marketing and user acquisition. A professional-looking preview with the right image and description dramatically increases click-through rates. A broken or generic preview makes your link look like spam.
The issue may differ by platform — Twitter might show a preview but Facebook doesn't, or the image appears on LinkedIn but the description is wrong on WhatsApp.
Error Messages You Might See
Common Causes
- Missing Open Graph meta tags — The page doesn't include og:title, og:description, og:image, and og:url meta tags
- Client-side rendered meta tags — Open Graph tags are rendered by JavaScript, but social media crawlers don't execute JavaScript
- Image URL issues — The og:image URL is relative instead of absolute, too small, or returns a 404
- Cached old preview — Social platforms cache previews aggressively, showing outdated information even after you fix the tags
- Same meta tags on all pages — Every page shares the same generic meta tags instead of page-specific content
How to Fix It
- Add Open Graph meta tags — Add og:title, og:description, og:image (absolute URL, at least 1200x630px), og:url to your page's <head>
- Use server-side rendering for meta tags — Ensure meta tags are in the initial HTML response, not added by JavaScript after page load
- Use absolute image URLs — og:image must be a full URL (https://yourdomain.com/image.jpg), not a relative path
- Clear social media caches — Use Facebook's Sharing Debugger, Twitter's Card Validator, and LinkedIn's Post Inspector to clear cached previews
- Add page-specific tags — Generate unique og:title and og:description for each page using your page content or data
Real developers can help you.
You don't need to be technical. Just describe what's wrong and a verified developer will handle the rest.
Get HelpFrequently Asked Questions
Why does my preview look right in DevTools but wrong on Facebook?
Facebook's crawler doesn't execute JavaScript. If your meta tags are added client-side by React, the crawler sees empty tags. You need server-side rendering (SSR) or static generation for meta tags.
How do I clear the cached preview on Facebook?
Go to Facebook's Sharing Debugger (developers.facebook.com/tools/debug/), enter your URL, and click 'Scrape Again' to refresh the cached preview.