Skip to content
Visibility

How to set the preview image and favicon for sharing

How your link shows up in messengers and social feeds: setting the Open Graph preview image, title and favicon so the shared link turns into a proper card.

18 min read Open GraphFaviconVorschaubildSocial SharingMeta-Tags

A quote is ready, the site is live, someone drops the link into a group – and instead of an inviting card there is only a bare address with a grey placeholder. The first impression of a website today often forms not on the page itself but in the chat bubble or feed where the link is shared. Whether a large preview image with a title and a small brand symbol appears there, or just a pale line of text, is decided by the Open Graph markup in the page head together with a properly set favicon. Based on the state of play in November 2026, this article shows which tags the protocol requires and which ones the major platforms evaluate on top, how large the image has to be, how to refresh a preview that loaded wrong on each platform and what a faulty and a corrected preview look like in the source code. The focus is explicitly on how a link looks when shared – not on the entry in Google search, which a separate article covers.

How your link looks when sharedOpen Graph preview in messengers and social feedsWith preview imageMMusterbau – Building RenovationFull renovation from one partnermusterbau.exampleRich card – instantly recognisable!Without preview imagemusterbau.example/angebotno preview image – looks emptyJust a plain link – easily missedOpen Graph supplies image and title – turning a link into a rich card

What actually happens when you share

When a link is pasted into a messenger or a social network, the app quietly fetches the page in the background, reads the document head and looks for special meta entries.

If it finds a preview image, a title and a description, it builds a card from them: a large image, the headline below it, the domain and often a small brand symbol. If those entries are missing, only the bare address or a grey placeholder remains. This preview is called a link preview or unfurl, and its language is the Open Graph protocol. The reach is considerable: 89 percent of internet users aged 16 and over in Germany use social media, and WhatsApp alone reaches 85 percent of them (Bitkom 2026). That is exactly where shared links land – in personal recommendations, team chats and posts. Anyone who wants a click to follow should not leave the card to chance. Whether such links should point to your own website or to a profile is weighed up in the article on your own website versus a social media profile.

The distinction from Google search matters. There, the page title and meta description mainly decide how the entry looks in the results list – a different channel with its own rules, covered in depth by the article on titles and descriptions in search results. The channels are not entirely separate, though: Google explicitly lists the content of the og:title tag as one of the sources a title link in search results can be built from (Google Search Central). When sharing, by contrast, the Open Graph image is what counts most, and the two representations can look entirely different. A page can be flawless in search and still show nothing but a grey box when shared, because the preview image is missing. Both representations therefore want to be checked separately.

Open Graph: the building blocks of the preview

The Open Graph protocol is a small, long-established set of meta entries in the head of an HTML page. Each entry consists of a property and a value, such as the title, the description or the image address.

The specification names four properties every page must carry: og:title, og:type, og:image and og:url (ogp.me); og:description and og:site_name are listed there as recommended extras. Adoption is high but patchy: Open Graph is set on 64 percent of pages, yet the decisive preview image og:image on only 48 percent of desktop pages (Web Almanac 2024). Put differently, more than half of all desktop pages give away the most eye-catching part of the card. And it is only a handful of lines that make the difference between an inviting preview and a pale line of text.

og:title

The card headline and one of the required properties. Short and specific, with the key message up front in case the platform truncates it.

og:description

One or two sentences below the title. Only recommended by the protocol, but LinkedIn lists it among the tags that must exist.

og:image

The large preview image, also required. If it is missing, only a grey box remains – the most eye-catching and most often forgotten block.

og:url

The canonical address of the page, required as well. It keeps the preview stable when the shared link carries parameters.

og:type

The kind of content, such as website or article. Required by the protocol; depending on the type, further fields apply.

og:site_name

The name of the website. It appears as the source next to or beneath the card title.

page-head.html
<!-- Open Graph for the link preview -->
<meta property="og:title" content="Sample Trades - extensions and renovation" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://www.sample-trades.example/" />
<meta property="og:image" content="https://www.sample-trades.example/preview.jpg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="The Sample Trades team in front of a renovated half-timbered house" />
<meta property="og:description" content="Local trade business for extensions, renovation and fit-out. Send an enquiry in two minutes." />
<meta property="og:site_name" content="Sample Trades" />

Required by the protocol, required by the platform

Scroll table sideways

PropertyPer the protocolNote from the specification and platform documentation
og:titleRequiredLinkedIn lists it among the required tags; Google may draw on it for the title link
og:typeRequiredDetermines which additional fields apply, for example for articles
og:imageRequiredMeta recommends at least 1200 x 630 pixels, LinkedIn names 1200 x 627 pixels as the minimum
og:urlRequiredMeta requires absolute URLs for both page and image
og:descriptionRecommendedLinkedIn lists it among the tags that must exist
og:image:width, og:image:heightOptionalWith the dimensions, Meta can show the image on the very first share
og:image:altShould be set whenever og:image is presentDescribes what is in the image – not a caption

The table shows why checking against the specification alone falls short. A page can carry all four required properties and still miss a platform that expects the description. Conversely, two inconspicuous extras help a great deal: with og:image:width and og:image:height the fetching service knows the image dimensions before it has loaded the image, so according to Meta it can appear on the very first share (Meta for Developers). Without them, the first person to share a link may see no image at all, because the service only loads it in the background. In 2024 the two dimensions were set on just under 24 percent of desktop pages, and an image description via og:image:alt on only 5.6 percent (Web Almanac 2024). Yet the specification provides for the description: anyone who specifies an og:image should also specify og:image:alt (ogp.me).

Setting the preview image correctly

The preview image is the block with the greatest effect and the highest error rate.

For Facebook, Meta recommends images of at least 1200 x 630 pixels for the best display on high-resolution screens; for a link to appear as a large card, they should be at least 600 x 315 pixels (Meta for Developers). Smaller images from 200 x 200 pixels upwards are shown by Meta only as a small, square image, and the file must not exceed 8 MB (Meta for Developers). LinkedIn names 1200 x 627 pixels as the minimum and 5 MB as the upper limit, and shows images less than 401 pixels wide only as a small thumbnail (LinkedIn). Both recommend an aspect ratio of 1.91:1 (Meta for Developers; LinkedIn). The image address in og:image has to be absolute, meaning the full domain over https, otherwise the fetching services cannot find the image. If there is text in the image, it belongs in the centre, because edges are cropped differently from platform to platform. How image formats, compression and alternative text fit together in general is explored in the article on images on the website.

  • Keep the aspect ratio at 1.91:1, ideally 1200 x 630 pixels, so the large card appears without cropping.
  • Give an absolute image address over https – Meta requires absolute URLs, and many services do not resolve relative paths.
  • Place the key message and any text centrally, because edges are cropped depending on the platform.
  • Use a meaningful motif per key page instead of one single image for the whole domain.
  • Provide a text alternative with og:image:alt so the card still makes sense when read aloud.
  • Include og:image:width and og:image:height so the image can appear on the very first share.
  • Keep the file lean: under 5 MB for LinkedIn, under 8 MB for Facebook, ideally well below.

A worked example shows why 1200 x 630 pixels work as a common size for both platforms. 1200 divided by 630 gives 1.905, 1200 divided by 627 gives 1.914 – both sit close to the recommended 1.91:1, since that exact ratio would mean a height of around 628 pixels at a width of 1200. An image 630 pixels high also meets LinkedIn's minimum. The file size limits are no obstacle at this size: 1200 times 630 is 756,000 pixels, which at 24-bit colour depth would come to around 2.3 MB uncompressed, so even without any compression it stays below both upper limits. What matters more is how quickly the image is delivered, because Meta expects it to be served within a few seconds (Meta for Developers). A second calculation helps with placing text: if a view shows the image as a square cropped from the centre, only 630 x 630 of the 1200 x 630 pixels remain, and 285 pixels are lost on each side. Logo and lettering therefore belong in the middle 630 pixels, while the edges are better left to background.

Scroll table sideways

AspectWith preview image (og:image)Without preview image
Appearance in chatLarge card with image, title and sourceBare address or grey placeholder
AttentionStands out in the feed and the groupBlends in with plain text messages
Perceived credibilityLooks maintained and currentLooks unfinished or outdated
Control over the motifImage and crop are chosen deliberatelyThe service picks any image or none
EffortSet once in the page headSeemingly zero, but costs clicks

The preview is not the search snippet

The link preview when sharing and the entry in Google search are two separate representations. The search snippet draws mainly on the page title and meta description; the chat card on the Open Graph image and title. A page can look good in search and still appear empty when shared. Check both channels separately, and do not confuse og:title with the title element – they are allowed to differ.

Favicon and chat card

The favicon is the small brand symbol that shows in the browser tab, the bookmark list and, in many chat cards, next to the domain.

It is tiny, yet it carries a lot of recognition – and is forgotten surprisingly often: around 18 percent of pages still have no favicon (Web Almanac 2024). Technically, a single symbol is no longer enough, because different contexts expect different sizes and formats. A small set has proven itself: a classic favicon.ico as a fallback, a scalable SVG for a crisp rendering at any size, a PNG version for services that do not read SVG, an Apple touch icon for placement on the home screen, and a set of PNG symbols plus a web app manifest for mobile systems. What matters is that the motif stays recognisable even at the smallest tab size – a reduced mark works better here than a shrunken full logo. How to derive such a mark from a wordmark is shown in the article on the website logo: wordmark, symbol or your own file.

favicon.html
<link rel="icon" href="/favicon.ico" sizes="32x32" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />

Google search has rules of its own (as of the Google help page from October 2026): the favicon must be square and at least 8 x 8 pixels, a favicon larger than 48 x 48 pixels is recommended, and Googlebot must be allowed to fetch both the home page and the image file without robots.txt blocking them (Google Search Central). Google reads raster formats such as PNG, JPEG or GIF; SVG is not on the list of supported formats. An SVG-only favicon is therefore not enough for search, and a PNG version alongside it closes the gap. In the browser, things have moved on: with Safari 26.0, introduced on 15 September 2025, Safari supports SVG files for icons, explicitly including favicons (WebKit). The Web Almanac 2024 still named Safari as a gap, and SVG favicons were found on only 1 percent of mobile pages at the time (Web Almanac 2024). For installation as a web app, Chromium browsers require the manifest to include at least one icon at 192 x 192 and one at 512 x 512 pixels (web.dev); when such an installable website can stand in for an app of your own is weighed up in the article Do we need an app?.

Scroll table sideways

FileSizeWhat it is needed for
favicon.ico in the root directorysmall raster sizeFallback: without a link, browsers may request /favicon.ico on their own (HTML Standard)
favicon.svgscalableCrisp at any size, since Safari 26.0 in Safari as well (WebKit)
PNG faviconlarger than 48 x 48 pixels, for example 96 x 96Raster version for Google search, which does not list SVG as a format (Google Search Central)
apple-touch-icon.png180 x 180 pixelsIcon on the iPhone home screen (Apple Developer)
Icons in the web app manifest192 x 192 and 512 x 512 pixelsMinimum set for installation in Chromium browsers (web.dev)

In the chat card, preview image and favicon work together: the large image draws the eye, the small symbol anchors the source. Some messengers also show the favicon to the left of the title, others display only the domain – the symbol should be present in either case. For placement on a phone home screen, the Apple touch icon or the manifest ensures a clean tile sits there instead of a screenshot. Keeping the brand consistent across channels – the same symbol in the tab, in the card and on the home screen – builds trust without writing a word for it. During a relaunch it pays to carry these symbols over deliberately so recognition is not lost; what else to watch there is collected in the article on a relaunch without ranking loss.

Title and description of the preview

The title and description of the card may differ from the entries for search. The og:title is the bold text under the image; it should be short and specific and put the key message first, because platforms may truncate long titles.

Where a page title for search often bundles a place name and a service, the sharing title may lean more on curiosity and benefit, because it appears in a personal context. It should not drift too far, though: because Google draws on og:title as a possible source for the title link, the sharing title should not promise anything the page does not deliver. The og:description adds one or two sentences that get the value of the link to the point. Not every platform shows the description, so the card also has to work without it – image and title carry the main load. If you offer several languages, maintain the entries per language version and set og:locale accordingly, so the shared card matches its destination.

Why the old preview keeps sticking

A common annoyance: the preview image was corrected long ago, yet the card keeps showing the old motif or a grey box. The reason is a cache.

As soon as a link is shared for the first time, the platform fetches the page and stores the preview instead of regenerating it on every share. Meta caches images by their URL: if an image is replaced under the same address, the old one stays, and a new image needs a new address (Meta for Developers). LinkedIn asks you to wait 48 hours after changing tags, and even after a refresh, posts already published keep their old preview (LinkedIn). For the favicon in Google search, Google expects several days to several weeks before a new fetch has been processed (Google Search Central). A fourth cache can sit with your own hosting: if a cache in front of the website still serves the old HTML, every inspection tool sees the old tags as well. That is why the preview test belongs before the first big distribution and in the launch phase of a new site, as described in the checklist for the first weeks after launch.

Scroll table sideways

ServiceTool to refreshWhat applies afterwards
Facebook, Messenger and other Meta servicesSharing DebuggerTriggers a fresh fetch; a replaced image needs a new address, and older posts do not change on their own
LinkedInPost InspectorRefreshes the preview for new posts; allow 48 hours after changing tags
Google search (favicon)URL Inspection tool in Search ConsoleRequest indexing of the home page; the new fetch can take days to weeks
Services without a tool of their ownNew image address, for example a new file nameOnce the service fetches the page again, it finds an image it has not cached yet

The first impression of a website often forms not on the home page but in a chat bubble – where someone passes the link on.

Set once, stable everywhere

Preview image, title and favicon are stored once in the page head and the brand symbols – after that they travel along with every shared page. Building these blocks into the template from the start means not recreating them on every subpage, and not risking that the card of all things breaks at the next rebuild.

Example: a faulty and a corrected preview

How small the causes often are is shown by a page head of the kind that can emerge after a rebuild. The home page of the sample business Sample Trades has a title and an image, yet sharing it shows nothing but the bare address.

Several errors come together: the image address is relative, the image sits in a protected preview directory that the fetching service is not allowed to open, og:url and og:type are missing, and og:title merely repeats the word “Home”. LinkedIn names exactly this case: if an image meets all requirements and still does not appear, the website may be blocking the fetch or the image may be located in a protected directory (LinkedIn). A classic after a domain change comes on top: the old domain is still in og:image, the file there has been deleted, and the service receives an error page instead of an image. What else to watch during a move is described in the article on switching website providers without downtime.

before-after.html
<!-- Before: sharing shows nothing but the bare address -->
<meta property="og:title" content="Home" />
<meta property="og:image" content="/preview-internal/teaser.jpg" />
<!-- relative address, protected directory; og:type, og:url and og:image:alt are missing -->

<!-- After: complete card -->
<meta property="og:title" content="Sample Trades - extensions and renovation from one partner" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://www.sample-trades.example/" />
<meta property="og:image" content="https://www.sample-trades.example/images/preview-2026-11.jpg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Renovated old house with a new timber extension" />
<meta property="og:description" content="Extensions, renovation and fit-out from one partner. Send an enquiry in two minutes." />

The correction follows a fixed order that works as a decision aid for every page. First the requirements: the four properties of the protocol with absolute https addresses. Then the platforms: og:description for LinkedIn, width and height for the first fetch at Meta. Then accessibility: og:image:alt with a description of what the image shows. Finally the motif: a dedicated image pays off for the pages that actually get shared – home page, services, articles, promotions. Legal pages or the thank-you page after a form can make do with the site's default image. The new file name with a month in it ensures that cached versions do not hide the new image, and the old file stays in place so older posts do not show an empty area – which Meta recommends as well (Meta for Developers).

Test before you share

The test takes a few minutes and spares awkward moments. The fastest step is a look at the source: are og:title, og:type, og:image and og:url in the head, and near the top?

At Meta, Open Graph properties must sit within the first megabyte of the page, otherwise they are cut off (Meta for Developers). Next, measure the image itself rather than just opening it: curl -sI with the image address shows the status code, content type and file size. You want status 200, a content type such as image/jpeg or image/png and a size well below LinkedIn's 5 MB. A status of 200 alone proves little: if the server returns an HTML page at the image address, such as a login screen, the content type reads text/html and the card stays empty. Then comes the practical trial with the platform's preview tool and a test within a closed circle: send the link to a private chat or a note first and look at the card there, ideally on a phone. Check not only the home page but the pages that are actually shared – the offer, the booking flow, the article.

  • Check the head: og:title, og:type, og:image (absolute https address) and og:url are present, plus og:description for LinkedIn.
  • Place the tags near the top of the head: Meta only evaluates the first megabyte of the source.
  • Measure the image: status 200, content type image/jpeg or image/png, file well below 5 MB.
  • Preview image at 1200 x 630 pixels, close to a 1.91:1 ratio, with logo and text in the middle 630 pixels.
  • og:image:width, og:image:height and og:image:alt are set.
  • Favicon set complete: favicon.ico, SVG, PNG larger than 48 x 48 pixels, Apple touch icon and manifest.
  • View and refresh the card with the platform's tool, then check it in a private chat on a phone.
  • After swapping an image, assign a new image address and leave the old file in place.
This article is based on data from: the Open Graph protocol (ogp.me, sections on required and image properties); HTTP Archive, Web Almanac 2024, chapters “Structured data” and “Markup”; Bitkom Research, study report “Social Media, Desinformation und Deepfakes” 2026 (representative survey of people aged 16 and over); Meta for Developers, “Images in Link Shares”, “Link Sharing FAQ” and “Meta Web Crawlers”; LinkedIn Help, “Make your website shareable on LinkedIn”, “Use Post Inspector to refresh URL” and “Troubleshooting issues sharing URLs”; Google Search Central, “Define Website Favicon for Search Results” and “Influencing Title Links in Google Search”; WebKit, “WebKit Features in Safari 26.0” of 15 September 2025; web.dev, “Add a web app manifest”; Apple Developer, “Configuring Web Applications”; WHATWG, HTML Standard, link type icon.