📱 Social/Viral

Facebook Share Link Generator

Paste a URL and get a working Facebook sharer.php link you can drop into a button or test straight away.

https://www.facebook.com/sharer/sharer.php?u=
Open Link

About the Facebook Share Link Generator

This wraps your URL in Facebook's classic sharer.php endpoint, still the most reliable public share link Facebook offers. The endpoint only reads the u= parameter: there used to be a quote param for pre-filled text, but Facebook deprecated it years ago and now silently ignores it, along with any title or description you might try to pass. Whatever headline and image show up in the share dialog come from that page's own Open Graph tags, not from anything this generator can control.

What Open Graph tags actually are, and why they decide the preview

Open Graph is a small set of <meta> tags, og:title, og:description, og:image, and og:url, that a page's own developer places in its <head> specifically to control how the page looks when shared on Facebook and other platforms that support the same protocol. When Facebook's crawler visits a shared URL, it reads exactly those tags to build the preview card, no Open Graph tags present, and it falls back to guessing from the page's plain <title> and whatever image or text it can find on the page, which often produces a noticeably worse-looking, incomplete share card. Since this generator only ever produces the share link itself, getting a good-looking result ultimately depends on the target page having proper Open Graph tags of its own.

A genuinely common gotcha: Facebook caches what it scrapes

Facebook's crawler doesn't re-check a page's Open Graph tags on every single share, it caches the scraped result. That means if you update a page's title, description, or thumbnail image after Facebook has already crawled it once, share links pointing at that URL will keep showing the old, stale preview until the cache is manually refreshed. Facebook provides its own free Sharing Debugger tool (at developers.facebook.com/tools/debug/) specifically for this, pasting a URL there and clicking "Scrape Again" forces Facebook to re-read the current Open Graph tags and clear the stale cached version. This is one of the most common points of confusion for anyone updating a page's thumbnail and wondering why Facebook "won't update" it.

Why the shared URL gets encoded before being appended

The link you're sharing gets embedded as the value of the u= query parameter inside the outer sharer.php URL, and that means it needs to go through encodeURIComponent() specifically, the more aggressive encoding mode that escapes characters like & and =. Without that step, a shared URL that itself contains its own query string, say a UTM-tagged marketing link, would have its own ampersands and equals signs misread as belonging to the outer sharer.php URL's structure rather than being part of the URL you're actually trying to share, silently corrupting or truncating the link.

Why sharer.php specifically, not a newer Facebook API

Facebook has restricted and deprecated various programmatic sharing APIs over the years as its platform policies around app permissions and authentication tightened. The sharer.php endpoint has stuck around specifically because it requires no app registration, no API key, and no authentication at all, it's a plain, publicly documented URL that works the same way for any developer, which is exactly why it remains the dependable choice for a simple "share this page" button even as Facebook's more complex API surface has changed considerably around it.

Testing before you commit to a link

The Open Link button exists specifically so you can verify the generated URL actually works before wiring it into a real share button on your site, clicking it opens Facebook's genuine share dialog in a new tab, showing exactly the title, description, and image your visitors would see. That's a quick way to catch a missing or misconfigured Open Graph tag on the target page before it ends up embarrassingly visible on a live, published share button.

Frequently Asked Questions

Can I set a custom title or description for the Facebook share preview through this tool?

No, sharer.php only accepts the URL parameter, Facebook deprecated the old quote text parameter years ago. The headline, description, and image shown in the share dialog come entirely from the target page's own Open Graph meta tags, not from anything passed in the share link.

Why does Facebook still show an old thumbnail after I updated my page's image?

Facebook's crawler caches the Open Graph data it scrapes rather than re-checking it on every share. Use Facebook's free Sharing Debugger tool to force a fresh scrape and clear the stale cached preview.

Why does the URL get encoded before being added to the share link?

The shared URL is embedded as a query parameter value inside the sharer.php link, so it needs encodeURIComponent() to escape characters like & and =. Without this, a shared URL with its own query string could have its ampersands misread as part of the outer link's structure, corrupting the result.

Why does this generator use the older sharer.php endpoint instead of a newer Facebook API?

sharer.php requires no app registration, API key, or authentication, making it a dependable, publicly documented option that works identically for any developer. Facebook has restricted or deprecated various programmatic sharing APIs over time, but this simple endpoint has remained stable.

What does the Open Link button let me do?

It opens the generated share URL in a new tab so you can immediately verify the actual Facebook share dialog and preview card before embedding the link in a real share button on your own site.

Will the share link work if the target page has no Open Graph tags at all?

The link itself will still work, but Facebook falls back to guessing a title and image from the page's plain title tag and visible content, which usually produces a noticeably less polished preview card than a page with proper Open Graph tags.