Short answer
Use Open Graph on every page, and add Twitter card tags only when the X preview should differ. The protocol requires og:title, og:type, og:image, and og:url. Facebook and LinkedIn document those tags. A 2020 Twitter markup page falls back to the Open Graph title, description, and image when the matching twitter tag is missing.
Last verified against the sources listed below.
Key takeaways
- Open Graph requires og:title, og:type, og:image, and og:url on every page.
- The protocol does not set a minimum image pixel size. Facebook and LinkedIn print their own.
- If several og:image tags exist, the first one from top to bottom wins a conflict.
- The live X cards path returned 404 in December 2026. Tag limits below are from a 1 September 2020 capture.
- LinkedIn Help requires og:title, og:image, og:description, and og:url for a shareable page.
The twitter card vs open graph choice is about which meta tags a page puts in the head, and which app fills a gap when a tag is missing.
The Open Graph protocol turns a page into an object in a social graph. It requires 4 properties: og:title, og:type, og:image, and og:url. A Twitter card is a second set of tags, written with the name attribute, such as twitter:card and twitter:image.
The card tags do not delete the Open Graph tags. They sit beside them and, on the last official markup table, borrow some Open Graph values when their own values are absent.
What does Open Graph require?
Every page needs a title, a type, an image URL, and a canonical URL.
The protocol defines og:title as the title that should appear in the graph, og:type as the object type, og:image as an image URL, and og:url as the permanent ID. Optional tags it recommends include og:description, a one or two sentence description, plus og:site_name, og:audio, and og:video. If you never set og:type, the protocol says an unmarked page should be treated as the type website.
Image details are optional structured properties. og:image:width and og:image:height are pixel counts, og:image:type is a MIME type, and og:image:alt describes what is in the image.
The protocol says alt text is not a caption. If a page sets og:image, it should also set og:image:alt. The protocol does not publish a minimum width or height, and its sample image is 400 by 300.
When one property is repeated, the first tag from top to bottom wins a conflict. Put width and height after the og:image they belong to. The next og:image starts a new image, and any height after that belongs to the new one.
How does a Twitter card differ?
A Twitter card names a layout in twitter:card, and it can reuse Open Graph text and the image.
In December 2026, the old cards path on docs.x.com returned 404. developer.x.com redirected to the X Developer Platform home, and that index does not list a cards guide. The markup reference used here is a capture of Twitter’s developer site from 1 September 2020. That page still calls the product Twitter Cards.
The table says twitter:title falls back to og:title, twitter:description falls back to og:description, and twitter:image falls back to og:image. If og:type, og:title, and og:description exist and twitter:card is absent, a summary card may be rendered. twitter:site has no Open Graph fallback. The table says twitter:site or twitter:site:id is required for summary, summary_large_image, app, and player cards.
That 2020 table also prints length limits, and they are not a December 2026 spec, because the live page is gone. twitter:title is a maximum of 70 characters, and twitter:description is a maximum of 200 characters.
twitter:image must be under 5 MB and use JPG, PNG, WEBP, or GIF. Only the first frame of an animated GIF is used, SVG is not supported, and twitter:image:alt is a maximum of 420 characters.
The markup table does not print a pixel width, so this guide does not invent one.
Which networks read which tags?
Facebook and LinkedIn document Open Graph tags. The archived X table documents twitter: tags plus the fallbacks above.
MDN’s metadata guide shows og:title, og:description, and og:image on the property attribute. It says a Facebook share can show that image and description. Facebook’s image guide says og:image is the picture that appears when someone shares the page to Facebook. LinkedIn Help says the page must include og:title, og:image, og:description, and og:url.
| Tag | What it sets | Who documents it |
|---|---|---|
| twitter:card | Card layout name | Twitter markup page, 1 Sep 2020 |
| twitter:image | Card image, else og:image | Same archived markup table |
| og:title | Title in the graph | Open Graph protocol |
| og:image | Image URL for the object | Open Graph, Facebook, LinkedIn |
| og:url | Canonical object URL | Open Graph protocol and LinkedIn |
| og:description | Short description | Open Graph protocol and LinkedIn |
The HTML meta element defines name and content as document-level metadata. Open Graph, which is based on RDFa, uses property and content instead. Both kinds of tag belong in the head.
Neither kind is structured data for a search result. Structured data classifies a page for search features. These tags classify a page for a share preview.
What image size does each network print?
The Open Graph protocol leaves pixel size open. Facebook and LinkedIn print their own floors.
Facebook’s developer image guide says the minimum allowed dimension is 200 by 200 pixels, and the file must not exceed 8 MB. Use at least 600 by 315 pixels for a larger link post, and at least 1200 by 630 pixels for high-resolution devices. Keep the picture close to a 1.91:1 ratio so the Feed crop stays small. og:image:width and og:image:height let the crawler draw the image on the first share.
Without them, the first person to share the URL may not see a rendered image, because the crawler has to fetch the file before it can measure it.
LinkedIn Help asks for a minimum of 1200 by 627 pixels, a recommended 1.91:1 ratio, and a file no larger than 5 MB. Images less than 401 pixels wide display as a thumbnail. The help page says it was last updated 3 years ago. Those numbers are what the page still prints, not a new December 2026 redesign.
Use the Open Graph image resizer when the file is destined for og:image. Use a separate export if twitter:image should not be the same file. Facebook caches each image by its URL, so a replacement needs a new URL or the old preview can stick.
Should a page set both?
Set the 4 Open Graph properties first, then add twitter: tags only for a different title or image.
One Open Graph set covers the networks that document those tags. Add twitter:card, twitter:title, twitter:description, and twitter:image when the X preview should not copy the Open Graph values. The 2020 table allows a summary card without twitter:card, if the 3 Open Graph text tags are present. It does not say a large-image layout appears on its own.
Keep og:url free of session IDs. The protocol calls that URL the permanent ID of the object. If you repeat og:image, put the preferred file first. The first tag wins.
The X card image resizer is for the file you assign to twitter:image. Match that file to the layout you name in twitter:card. A square logo in a wide preview leaves empty bands or gets cropped.
Write og:image:alt as a description of the picture, not as a second headline. The protocol is explicit that the alt text is not a caption.
Frequently asked questions
What does og:determiner do?
og:determiner is the word that appears before the object title in a sentence. The Open Graph protocol limits it to a, an, the, an empty string, or auto. If you pick auto, the consumer chooses between a and an. The default is an empty string, so most pages never set this tag. It does not change the image, the URL, or the description. Leave it off unless a sentence built from the title needs an article in front of the name.
What is the default og:locale?
The protocol sets the default locale to en_US. The format is language_TERRITORY, so a British English page would use en_GB. Other languages for the same page go in repeated og:locale:alternate tags, such as fr_FR. The locale describes the tags, not the whole website. og:site_name is separate. It is the larger site name, such as a publisher name, and it is optional on every object.
Does a player card use the same tags as a summary?
No. The 1 September 2020 Twitter markup table says a player card also needs twitter:player, a secure URL of the player iframe, plus twitter:player:width and twitter:player:height in pixels. It can include twitter:player:stream for a raw video or audio URL. Those player tags have no Open Graph fallback on that table. summary and summary_large_image do not use the player URL. App cards instead use store names and app IDs for iPhone, iPad, and Google Play.
Can og:video replace the required image?
No. og:video is optional. It is a URL to a video file that complements the object, and it accepts the same structured properties as og:image, including secure_url, type, width, and height. The four required properties are still title, type, image, and URL. og:audio is narrower. It only has the URL, secure_url, and MIME type, because a sound file has no pixel size. A page can set both an image and a video.
Does the first og:image have to include width and height?
No. Structured properties are optional, and a later image can omit them. The protocol's own example declares three images. The first is 300 by 300, the middle one has no dimensions, and the last is 1000 pixels tall with no width. Put each width or height tag after its own og:image. When the parser sees the next root og:image, it closes the previous image. Facebook still recommends width and height so its crawler can draw the image on the first share.
Sources
- The Open Graph protocol · Open Graph, 2026
- HTML meta element · MDN, 2026
- What's in the head? Web page metadata · MDN, 2026
- Images in Link Shares · Meta for Developers, 2026
- Make your website shareable on LinkedIn · LinkedIn Help, 2023
- Cards markup (archived 1 September 2020) · Twitter Developer Platform, 2020
- X Developer Platform · X, 2026