The short answer
Read the share tags from the page in your browser, then apply each app's published title, description and image limits to them. The Share Preview extension does this on its own when the page is on your machine or network, and it sends nothing to a server for those addresses.
What happens on a local page
Our test page runs on http://127.0.0.1 with a 116-character og:title and a local share image. Share Preview sees that the address is on your own machine and doesn't call the server. It reads the tags from the open tab and draws all 8 cards. The title is cut on 6 of them: X at 70 characters, WhatsApp and iMessage at 80, Facebook at 90, and LinkedIn and Telegram at 100. Slack and Discord show it in full.
The same happens on addresses such as localhost, 192.168.x.x, 10.x.x.x and names that end in .local, .internal or .test.
What happens on a staging site
A staging site on a public address is different. The extension asks the server, which fetches the page the way the apps' crawlers do. If the address doesn't resolve on the internet, for example a name that only your VPN knows, the server can't reach it, and the extension falls back to the tags in your tab. It says at the top of the result which copy it used.
If the staging site answers with a login page or a password prompt, the server reads that page, and so would every crawler. The cards then show the login page, and the extension notes each tag that your tab shows but crawlers don't get. That's the right answer for a shared link, but it isn't a preview of the real page. For that, open the page on localhost.
From your tab alone, the extension can't see the HTML a crawler gets, and it can't measure the image file. It can't tell you that a script adds a tag, or that the image is too large for WhatsApp. Check those again once the page is public.
A short routine before launch
- On localhost, click the icon and fix any title or description that's cut on the apps you care about.
- Deploy to a public preview address and click the icon again. Now the server reads the page as a crawler would, measures the image, and flags tags that only a script adds.
- After launch, if an app still shows an old card, use its own tool to read the page again. Our post on fixing Facebook and LinkedIn previews lists them.
Sources
- Local test: the Share Preview extension's end-to-end test page on
127.0.0.1, with a 116-characterog:title. - Facebook image sizes: Meta, Images in link shares.
- LinkedIn image and text sizes: LinkedIn Help, sharing content.
- iMessage: Apple, LPLinkMetadata.
- Telegram: Telegram API, webPage.
- WhatsApp: no published limit; the 300 KB line is a field rule. WhatsApp Help Center.
- X: no published card limits; the 70-character title is a field rule. X, webpage properties.
Frequently asked questions
Can I test Open Graph tags on localhost?
Yes. Online checkers can't reach localhost, but the Share Preview Chrome extension reads the tags from the open tab and applies each app's limits, without sending the address to a server.
Why does the Facebook Sharing Debugger fail on my staging site?
Facebook's crawler fetches the page from the internet. It can't pass a login, a password or a private network, so it never sees the page. Check the tags from your browser instead, then use the debugger once the page is public.