Open Graph images for your app's website

What an Open Graph image is

Open Graph is a set of meta tags, started by Facebook, that tells other apps how to show a link to your page: its title, description, URL and image. When you paste a link into a post or a chat, the app fetches the page, reads these tags and builds a preview card.

Without an image tag, the app guesses. It might pick your logo, a random image from the page, or nothing at all. For an app’s website, that card is often the first thing people see of your product, so it’s worth controlling.

The size: 1200 × 630

The Open Graph protocol itself doesn’t set a pixel size. In practice, 1200 × 630, a 1.91:1 ratio, shows as a full-width card on nearly every platform, and LinkedIn’s 1200 × 627 is close enough that the same image works there. Use that size, and export as JPEG or PNG under a few megabytes so it loads quickly when the app fetches it.

Keep a safe area

Different apps trim the image slightly differently, and some show it smaller, as a thumbnail. To keep it readable everywhere:

The tags to add

Put these in the <head> of each page. The Open Graph protocol lists og:title, og:type, og:image and og:url as required, and asks for og:image:alt whenever you set an image.

TagExample value
og:titleYourApp – Track your habits
og:descriptionOne sentence about what the app does.
og:typewebsite
og:urlhttps://yourapp.com/
og:imagehttps://yourapp.com/og.jpg (a full URL, not a relative path)
og:image:width / og:image:height1200 / 630
og:image:altThe app’s home screen on an iPhone, on a blue background.
twitter:cardsummary_large_image

In HTML it looks like this:

X reads the Open Graph tags for the title, description and image when its own twitter: versions are missing, so twitter:card is usually the only X-specific tag you need. Without it, X may show a small card or none.

One image per page

Your home page gets the hero image. Other pages can have their own:

A page-specific image makes a shared link look like it was made for that conversation, and it gets more clicks than the same logo card on every page.

Test the preview

Apps cache previews, sometimes for days, so test before you share a link widely.

If an old image keeps showing, change the image’s filename (for example og-2.jpg) and update the tag. A new URL skips most caches.

Common mistakes

Make one with a framed device

For an app, the strongest Open Graph image is usually the app itself: your best screen in a device frame, on your brand color, with a short headline. Because 1.91:1 is wide, one phone in the middle leaves a lot of space. Use it for a headline beside the phone, or show two or three screens in a row.

FeatureFrame has a 1.91:1 canvas preset. On a Mac:

  1. Drop in your screenshot. FeatureFrame detects the iPhone or iPad from its size and frames it in a 3D model of that device.
  2. Choose the 1.91:1 canvas, and a solid color, gradient or your own image as the background.
  3. Tilt the device a little, or add up to three screenshots in a Row layout.
  4. Export at 720p as JPEG. A 1.91:1 canvas comes out at 1376 × 720, the same shape as 1200 × 630 and a little sharper. Use it as is, or resize it to the exact size.

Leave the headline for a design tool or your website’s template if you need one; the framed device is the part that’s hard to make by hand.

Use the same image as the hero of your launch posts: see the launch images checklist. For the other sizes you’ll need, see image sizes for sharing app screenshots, and for single device frames, the device frame library.

More guides