Set the Open Graph tags behind a link preview

  • Give the shared page a clear title

    og:title names the shared content. og:description adds a short description.

  • Identify the page and its type

    og:url supplies the preferred URL for the shared object. og:type identifies what kind of content it represents.

  • Choose an image that describes the page

    og:image names the image. Width, height and alternative text describe that image more fully.

The Open Graph protocol defines the fields.

Choose an OG image size for the platform you use

  • The service showing the preview sets its image requirements. LinkedIn specifies a minimum of 1200 by 627 pixels, recommends a 1.91:1 ratio and allows a maximum file size of 5 MB.

  • Those dimensions are LinkedIn's sharing requirements, not an Open Graph rule.

Test your link preview on Facebook and LinkedIn

  • Use Facebook's Sharing Debugger to review how Facebook reads the page and identify Open Graph issues.

  • LinkedIn can reuse an image it previously cached. Enter the URL in Post Inspector to refresh the information for new shares. LinkedIn says this doesn't change existing posts.

Frequently asked questions

Does an Open Graph checker show exactly what every chat app will display?

A metadata check reads what the page publishes. Check the preview in the app where you'll share the link. A result from one service doesn't tell you how another will display it.

  • SEO

    Find what's keeping your pages out of search results.

  • Titles and meta descriptions

    Write distinct titles and descriptions without treating character counts as a ranking rule.

  • Favicon

    Publish a usable site icon and understand why Google may still show an older one.