1. Stello
  2. Guides

How to check OGP: preview links on X, Facebook, LINE and Slack

You publish a blog post or a new page, share it on social media, and the image doesn't show up, or the title of a different page appears. Sound familiar? How a link looks when shared is decided by the OGP (Open Graph Protocol) tags in the page. Here are the basics of OGP and how to check it.

OGP basics

OGP is sharing information written in the <head> of a page's HTML. With at least the following tags, most services show the link as a card with an image.

<meta property="og:title" content="Page title">
<meta property="og:description" content="Page description">
<meta property="og:image" content="https://example.com/ogp.png">
<meta property="og:url" content="https://example.com/page/">
<meta name="twitter:card" content="summary_large_image">
TagCommon mistakes
og:imageThe image URL is a relative path. The image is too small (aim for about 1200 × 630 pixels)
og:titleToo long, so it gets cut off
twitter:cardMissing, so X doesn't show a large image card

How to check OGP

Option 1: View the page source

Open the page in your browser, view the source and search for og: to see whether the tags are there. But that doesn't tell you how the link will actually look.

Option 2: Use each service's checking tool

Facebook has the Sharing Debugger and LINE has PagePoker, tools that re-fetch a page's OGP so you can check it. You have to check each service separately, and X currently has no official preview tool (availability may change).

Option 3: Post it and see

You can also paste the URL somewhere only you can see (such as a Slack message to yourself). But services may remember OGP they've already fetched for a while, so even after you fix it, the old version may still show.

Preview all four services at once (Stello)

Stello's OGP Preview card recreates the shared card when you enter a URL and press ↩.

How to use it

  1. Hold down the right ⌘ key to bring up the cards
  2. On the OGP Preview card, enter the URL of the page to check and press ↩
  3. Switch between X, Facebook, LINE and Slack to see how it looks

The previews recreate how each service displays links. The actual display may differ slightly, for example when a service changes its design.

Summary