missing_og_image is one of the most common things MetaManager reports. Until
now the answer was a <meta> tag pointing at an image you still had to design
and host. This draws it instead.
Add one line to your template and every page gets a card built from that page’s
real title and description:
{{ current_url }} with whatever your framework calls the current page
URL. That is the whole integration — no backend code, no signing, nothing to
generate at build time.
Layouts
Four are available. Choose a default under Social cards, and override it for any individual page with&tpl=:
split fills a large panel with your accent colour, so its text colour is
chosen automatically from that colour’s brightness — a colour picked for a thin
rule does not always work behind text, and this is the one place that matters.
A name we do not recognise falls back to your saved default, so a typo in one
page’s tag costs you that page’s layout and nothing else.
Languages and scripts
Cards draw in the page’s own script. Japanese, Chinese (Simplified and Traditional), Korean, Cyrillic, Greek and the extended Latin alphabets all render from the page’s real title, with no configuration.Putting your own image on the card
Thebanner layout draws a picture behind the text. Name it explicitly:
A card whose image cannot be fetched — wrong address, too large, too slow,
not an image — draws without it rather than failing, and says why in an
x-mm-degraded header. The dashboard preview and the demo on our home page
both tell you directly, because a browser cannot check an image’s size on
another domain for itself. The text is legible
either way: banner puts a gradient between the picture and the words, because
an image chosen for how it looks is rarely one chosen as a background.Adjusting a layout
Four settings change how any of the four layouts draws, in your account or per page:minimal never draws a description, so desc does nothing there. The
dashboard greys the control out rather than letting you set something that
will not happen.Reading a page in a particular language
If your site serves different languages from one URL, add&l= so we read the
one you mean:
Setting it up
In your account, under Social cards:- Verify your site. Add your domain and put the
<meta>tag we show you on its home page. We check it with the same checker you already use. - Choose your colours. Background, text and accent. Use my favicon pulls your site’s icon in as the card’s mark.
- Copy the snippet into your template.
The key in the URL is public — it sits in your page source where anyone can
read it. That is why step 1 exists: a card is only ever drawn for a domain you
have verified, so a copied key is useless to whoever copies it.
What the card shows
Your site name and icon, the page’s title, its description, and an accent rule in your colour. Everything comes from the page itself, so the card cannot drift out of step with what it is previewing. If a page has no title — the case that probably brought you here — the card falls back to the page’s URL rather than drawing nothing.What it costs
Cards drawn, not link previews served. A card is drawn once and then cached,
so a page shared a thousand times costs one card. Redrawing happens about daily,
so an edited title appears within a day without you doing anything.
Going over the allowance does not break your previews. Cards keep being drawn —
they just carry the mark until the next month starts.