Improve your posts
Make shared links look good: Open Graph and X cards
Set a default share image, X and Facebook details, and a share title, description and image per post, so links look right on Facebook, LinkedIn, X and messengers.
Time
5 minutes
What you need
- The plugin installed
- A 1200 x 630 pixel image
When someone shares a link on Facebook, LinkedIn, X or a messenger, the card comes from Open Graph and X (Twitter) tags. OnlyAI SEO prints them on posts, pages, the home page, category and tag archives and author pages.
Site-wide
- Open OnlyAI SEO, Settings, Titles & social, Social sharing.
- Keep Print Open Graph and Twitter card tags on.
- Press Choose image for the Default share image (used when a post has no featured or social image). The best size is 1200 x 630 pixels.
- Add your X (Twitter) username and Facebook page address.
- Press Save.
One post
In the editor, Search & social (OnlyAI SEO) has a share title, description and image. If you leave them empty, the plugin uses the SEO title, the meta description and the featured image, then your site's default image. Previews & data (OnlyAI SEO) shows how the card will look on Facebook, LinkedIn and X.
If a shared link looks old
Facebook, LinkedIn and X keep their own copy for a while. After you change a card, ask each network's sharing debugger to fetch the page again.
On a shop with WooCommerce, the card also gets the price, currency, availability and SKU. WooCommerce guide.