Skip to main content
Cookbook Marketing SEOPress

Fix How Your Posts Look When Shared in SEOPress with AI

Check the preview card your post makes on social sites and fix its title, text and image in SEOPress.

Difficulty Beginner
Time ~10 min

Prerequisites

A site connected to WPVibe running SEOPress 10.4 or newer (tested on 10.4, free) on WordPress 6.9 or newer, with an administrator account, and Expose abilities to AI agents and external tools turned on under SEO > Advanced > Advanced > Abilities API.

The prompt
My WordPress site uses SEOPress. Fix how [post URL, or: my 10 newest posts] looks when shared on social media.

1. Run discover_abilities with category seopress. If seopress/update-post-social-settings is not there, run rest_api GET /wp/v2/plugins with search seopress. If SEOPress is active, tell me its AI abilities are off until I turn on Expose abilities to AI agents and external tools under SEO > Advanced, Advanced tab, Abilities API section, and save (the MCP server and connection steps on that screen are not needed for WPVibe; if the switch is already on, the site needs SEOPress 10.4 or newer and WordPress 6.9 or newer: tell me to update), and stop. If it is installed but not active, tell me to activate it and turn on that switch, and stop. If it is not installed, tell me this recipe is for the free SEOPress plugin, and stop.
2. Run seopress/get-global-social-settings once. SEOPress prints Facebook (Open Graph) tags only while seopress_social_facebook_og is "1", and X tags only while seopress_social_twitter_card is "1"; if either is missing or not "1", tell me to turn on Enable Open Graph Data or Enable X Cards under SEO > Social Networks, and stop if Open Graph is off. For X, SEOPress uses the post's own X fields first, then the Facebook ones only if seopress_social_twitter_card_og is "1" (Use Open Graph data as fallback), then the SEO title and description; for the X image, the X image, then the Facebook image with that fallback on, then the featured image, then the default X image.
3. Find each post's ID: for a URL, rest_api GET /wp/v2/posts with its slug (or /wp/v2/pages for a page); for my newest posts, rest_api GET /wp/v2/posts with per_page 10. For each, run seopress/get-post-social-settings and seopress/get-post-title-description with post_id, and read the post with rest_api GET /wp/v2/posts/ID (/wp/v2/pages/ID for a page) for its title, excerpt and featured_media. Fetch the live URL with get_page_html and read og:title, og:description, og:image, twitter:title, twitter:description and twitter:image.
4. Show me the card as it is now: title, description and image, or no image. SEOPress uses the post's own social image first, then its default image if seopress_social_facebook_img_default is "1" (one image for every post), then the featured image, then the default image in its social settings, then the site icon.
5. Draft a social title (up to 60 characters) and description (up to 155 characters) from what the post says, no invented claims. If the post has no social image and no featured image, find one with rest_api GET /wp/v2/media with media_type image and a search word from the post, and suggest one, ideally at least 1200 by 630 pixels; give me its source_url. If nothing fits, say so and leave the image out. Never upload or generate a new image.
6. Show me before and after for each post and wait for my yes.
7. Save only what I approve with seopress/update-post-social-settings, post_id and settings with _seopress_social_fb_title, _seopress_social_fb_desc and, if approved, _seopress_social_fb_img (the image URL). Unless seopress_social_twitter_card_og is "1", send _seopress_social_twitter_title, _seopress_social_twitter_desc and _seopress_social_twitter_img with the same values in the same call. If a Facebook or X field already has a value, show it and ask before replacing it; if seopress_social_twitter_card_og is "1" and the post has its own X title or description, tell me X keeps using those, not the new Facebook text, and ask whether to update them to match. Never send an empty string: it clears the field.
8. Fetch each live URL again with get_page_html and confirm the og and twitter tags show the new values. If no og or twitter tags print at all, tell me to check that Social Networks is on in the SEO dashboard. If they show old values, check for a page cache. Tell me social sites keep an old preview for a while, and that Facebook's Sharing Debugger and LinkedIn's Post Inspector refresh it. If twitter:card is summary, tell me X shows a small image, and that Image size for summary card in SEOPress's X settings makes it large.
Already connected?

Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:

Run the “Fix How Your Posts Look When Shared in SEOPress with AI” recipe from the WPVibe cookbook on my connected site.

Paste a link to your post into Facebook, LinkedIn, X or a group chat and the preview card is the first thing people judge. Without a social image or a featured image, the card can go out with your site icon or no picture at all, and the text is whatever SEOPress pulled from the post.

The AI reads what SEOPress sends to social sites for a post, fetches the live page to see the tags a share card is built from, and drafts a social title and description, with an image from your own media library. It shows you the card before and after, and saves only what you approve.

SEOPress builds the X (Twitter) card from its own fields, not from the Facebook ones, unless Use Open Graph data as fallback is on in its X settings, so the AI fills both with the same text when that is off. Social sites cache previews, so an old card can take a while to update.

Outcome

Your post shares with the title, text and image you chose, on Facebook, LinkedIn and X, confirmed in its live page source.