What is Open Graph?
Open Graph is a small set of meta tags that sit in the head section of a web page. When you paste a link into a post or a chat, the app visits the page, reads these tags and builds a preview card. That card usually shows an image, a title, a short description and the site name. Facebook first introduced the idea, and today most social apps and messaging tools read the same tags.
Without Open Graph tags, an app has to guess. It may grab the wrong image, pull a random line of text or show a bare link with no picture at all.
How Open Graph works
Each tag is one line of HTML with a property and a value. The most common ones are:
- og:title: the headline shown on the card.
- og:description: one or two lines under the headline.
- og:image: the address of the picture the card shows.
- og:url: the main address of the page.
- og:type: the kind of page, such as an article or a website.
- og:site_name: the name of your site, shown small on some cards.
Here is what the code looks like for a blog post: <meta property="og:title" content="How to repot a fern">. You add one line like this for each tag.
When someone shares the link, the app fetches the page once, reads the tags and saves the card. That saved card is what everyone sees, which is why changes don't always show up right away.
- 1You paste the link
Into a post, a comment or a chat.
- 2The app visits the page
It reads the Open Graph tags in the head.
- 3It builds a card
Image, title, description and site name.
- 4It saves the card
Everyone sees the saved card until the app fetches again.
Why Open Graph matters for social media
A link with a clear image and a good title stands out in a busy feed. A broken preview looks careless and gives people a reason to scroll past. If you share blog posts, product pages or landing pages, these tags decide how your links look before anyone clicks.
It also matters when other people share your links. You can't control their caption, but your Open Graph tags still decide the image and headline they show. Every share becomes a small ad you designed ahead of time.
How to set up Open Graph tags
- 1Add the tags
In the page head or through your site builder.
- 2Write a sharing title
Short, clear and inviting.
- 3Choose a wide image
Sharp, centered and with little small text.
- 4Test the link
Use each platform's preview tool.
- 5Refresh after changes
Ask the app to fetch the page again.
- Add the tags. Put them in the head of each page, or switch them on in your website builder or SEO plugin.
- Write for sharing. Your sharing title and description can differ from your search title. Make them clear and inviting.
- Pick a strong image. Use a sharp, wide picture with very little small text on it.
- Give each page its own tags. Each important page should have its own title and image.
- Test the link. Use the preview or debug tool of the platform you post to.
- Refresh after changes. If you change the image later, ask the platform to fetch the page again.
Open Graph on different networks
Most apps read Open Graph, but they don't all show the card the same way. Facebook and LinkedIn usually show a wide image with the title below. Messaging apps often show a smaller card. Some apps crop the image to a square or show only the title on small screens. X reads its own card tags first and falls back to Open Graph when they are missing. On apps where links in captions don't click, like Instagram feed posts, the card doesn't show at all.
Because of this, keep the key part of your image in the center, where it survives cropping. And keep titles short enough to read in a small card.
Testing and fixing previews
Paste your link into the platform's debug or inspector tool before you post. It shows the card the app will build and lists any missing tags. If you see an old image, the tool usually has a button to fetch the page again.
Here is an example. A shop changes a product photo, but shared links still show the old one. The owner runs the link through the debug tool, presses the button to fetch again, and the new photo appears in fresh shares.
Common mistakes
- A missing or tiny image, which leaves the card blank or badly cropped.
- Giving every page the same title and image, so every shared link looks alike.
- Putting small text on the image that nobody can read in a feed.
- Forgetting that apps save old previews, then thinking your changes didn't work.
- Pointing og:image at a picture that needs a login to load.
Tools that help
Sharing DebuggerMeta's tool for seeing how a link will look when shared and fetching it again.Visit site
LinkedIn Post InspectorLinkedIn's tool for checking and refreshing a link preview.Visit site
CanvaA design tool for making the share image for each page.Visit siteUTM builderOur toolTag the links you share so you can see which posts bring visitors.Open
Related terms
- ThumbnailA thumbnail is the small preview image people see before they click a video or post, most often on YouTube, chosen to make them want to watch.
- EmbedAn embed is a piece of code that shows a social post, video or other content from one site inside another site, like a blog or web page.
- URL shortenerA URL shortener is a tool that turns a long web address into a short link that is easier to share, type and track.
- UTM parametersUTM parameters are short tags added to the end of a link that tell your analytics tool where a visitor came from, such as which post or campaign.
- Link in bioLink in bio is the clickable link in a social media profile, often pointing to a simple page that lists several of your links.