Match the destination to the image
An Open Graph image is fetched from the URL shared in a post or message. Build the image for the link card, then publish it where the destination's crawler can retrieve it. A photo attached to a post takes a separate upload path and can use a different aspect ratio. Decide which path the audience will see before writing the headline.
| Destination | Canvas | How the image is used |
|---|---|---|
| Facebook website share | 1200 × 630 | Meta's recommended starting size for a high-resolution link card fetched with og:image |
| LinkedIn website share | 1200 × 627 | LinkedIn's documented dimensions for a link image at about 1.91:1 |
| X single-photo post | 1200 × 675 | A 16:9 canvas for a directly attached photo |
| LinkedIn directly uploaded photo | 1080 × 1080 | A square feed canvas for a standalone image post |
The 45-pixel height difference between the first and third rows sounds small, but it matters when a logo or footer sits flush with the edge. If a 1200 × 675 image is center-cropped to 1200 × 630, the crop removes roughly 22 pixels from the top and 23 from the bottom. That is a geometry example, since a platform determines the actual crop. Keep essential text close to the center and leave room on all four sides. For an initial layout, try a title of about six to ten words and one supporting line. Treat this as an editorial suggestion and check the real preview rather than relying on a universal character limit.
Meta link-image requirements · LinkedIn link image specifications · X photo post help
Create and publish the card
- Reduce the article to one message. Paste a heading plus the outcome someone gets by opening the link. If the page is a tutorial, name the task. If it is a release note, name the change users will notice. Put detailed steps, dates, and tables in the article where people can read them at their own pace.
- Choose a link preset and check the crop. Use Open Graph Link Preview for 1200 × 630 or LinkedIn Link Preview for 1200 × 627. Preview the largest heading at each size. Keep the supporting line away from the bottom edge and put any small brand mark inside the visual margins. Open the preview at a narrow width to see which words survive.
- Export one image and host it. PNG works well for flat color and lettering. Try JPEG for a photo-led card when file size matters. Open the exported file, verify its dimensions, and publish it at an absolute HTTPS URL that can be opened without login. Use a new filename when replacing an image if the platform continues to show a cached version.
- Set the page metadata and inspect the shared URL. Add an og:image URL to the page head and set og:image:width, og:image:height, and og:image:alt to describe the asset. Change the metadata on the page being shared, even if the image is served from a separate host. Check the page source as a logged-out visitor. Then inspect the page with the platform tool and confirm the thumbnail, title, and description all describe the same destination.
Three card layouts you can reproduce
- Tutorial link. Start from Blog summary, choose the Open Graph preset, and adapt the heading to a task such as “Turn a wide Markdown table into a readable card.” Use the next line to state the outcome. Save the full width comparison and the exact Markdown for the tutorial itself.
- Release-note link. Load Launch announcement, switch from its photo-post size to Open Graph, and replace its list with one concrete feature plus who benefits. Try opening the export beside the article title. If both repeat the same sentence, use the card's supporting line to add a reason to click.
- Technical article. Use Code snippet to test whether the subject stays recognizable at thumbnail size. Reduce the code card to one short command or function name, and explain the task in the headline. Provide the complete, copyable code in the linked article.
Check the preview before sharing
This is a repeatable preview check for your own URL. First open the published page and image in a private browser window. Check that the image opens directly and that the metadata points to the same file. Submit the page URL in the Meta Sharing Debugger or LinkedIn Post Inspector. Inspect the selected image and compare its crop with the editor export. If the inspector shows an older image, verify the versioned URL in the deployed HTML and request another scrape where the tool offers it. If it shows no image, check for an authentication requirement, a blocked crawler, an incorrect image URL, or a redirect to an error page. Recheck when you have updated the source page and opened the new image URL directly.
When to use a link card
Choose an Open Graph image when you want to improve the preview of a blog post, documentation page, or changelog URL someone will share. The card works best as a compact description of the destination: show the subject, give one reason to open it, and let the title and description supply the rest. The source Markdown can stay in the repository next to the article. Re-export when the headline or screenshot changes, update the image URL in the page metadata, and run the same preview check again.
Use a feed preset if the post itself is the publication and the image will be attached directly. A square or tall card may leave more space for a useful checklist on mobile. A long tutorial that naturally splits into several images also belongs in the post or the article. For a link card, choose one representative export, since link previews commonly highlight a single thumbnail. Keep full code, detailed comparisons, and any text readers need to copy on the destination page. If the platform generates a small thumbnail in a particular feed placement, a short headline with strong contrast will carry more information than a dense image designed to occupy the full width.
Frequently asked questions
- What size should I use for a Facebook Open Graph image?
- Start with 1200 × 630 for a high-resolution link preview. The editor has an Open Graph Link Preview preset at that size.
- Can I reuse my 1200 × 675 X post image for a link?
- You can publish the same asset, but the preview may crop it differently. Re-export at 1200 × 630 if the existing file puts important text or branding close to the top and bottom edges.
- Does exporting a card set og:image automatically?
- Export downloads an image to your device. Publish that file and update the metadata of the page you want people to share.
- Why does the link still show my old image?
- The service may have cached the earlier asset or page metadata. Check the deployed source, publish the replacement at a new image URL, and use the platform's inspection tool to refresh the preview.
- Should a card with text be PNG or JPG?
- PNG is a useful starting point for flat backgrounds and small lettering. Compare with JPG at the same canvas size if a photo takes up most of the card or the file needs to be smaller.
- Can I put a whole tutorial on a single card?
- Keep the card focused on the task and the result. Put the tutorial on the linked page so it stays readable and the text can be copied.