[Agent Tools](https://tools.openkrill.app/) / [Blog](https://tools.openkrill.app/blog)

# How to preview your link card on localhost or a staging site before you ship

The usual link preview checkers fetch your page from the internet, so they can't see localhost, a staging site behind a login, or a preview deploy behind a password. You still want to know how the card looks before the page goes live. This post shows a way that works on your own machine.

By OpenKrill. Published 2026-10-21. The example is the test page that the [Share Preview Chrome extension](https://tools.openkrill.app/share-preview-extension) is tested against.

## 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](https://tools.openkrill.app/share-preview-extension) 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

1. On localhost, click the icon and fix any title or description that's cut on the apps you care about.
2. 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.
3. 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](https://tools.openkrill.app/blog/fix-facebook-linkedin-link-preview-no-image) lists them.

## Sources

- Local test: the Share Preview extension's end-to-end test page on `127.0.0.1`, with a 116-character `og:title`.
- Facebook image sizes: [Meta, Images in link shares](https://developers.facebook.com/docs/sharing/webmasters/images/).
- LinkedIn image and text sizes: [LinkedIn Help, sharing content](https://www.linkedin.com/help/linkedin/answer/a521928).
- iMessage: [Apple, LPLinkMetadata](https://developer.apple.com/documentation/linkpresentation/lplinkmetadata).
- Telegram: [Telegram API, webPage](https://core.telegram.org/constructor/webPage).
- WhatsApp: no published limit; the 300 KB line is a field rule. [WhatsApp Help Center](https://faq.whatsapp.com/).
- X: no published card limits; the 70-character title is a field rule. [X, webpage properties](https://docs.x.com/x-for-websites/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.
