Set the SEO-plugin social image
Yoast's Open Graph functional spec sets og:image from a user-defined Facebook image in the Social tab, then the featured image on posts, then a prominent image from the content, then the social default from Search Appearance, then the site fallback. The current help article labels the editor Social media appearance. Rank Math's Open Graph guide lists the image as the Social-tab OpenGraph image, then the featured image, then the first image in the post, then the default OpenGraph thumbnail. Titles and Meta recommends 1200 by 630 for that thumbnail.
Set the social image on the post when this share should differ from the featured image. Set the sitewide default when most URLs should share one file. Confirm a single og:image in the debugger. These plugins attach the tag to a file you already have. They do not draw a new card when the headline changes.
Use a generated card
Use this path when the open graph image should follow the title, excerpt, or product fields. Install OG Pilot Dynamic Open Graph Images from the WordPress lander, activate it, and choose Connect with OG Pilot. The listing says the plugin uses OAuth with PKCE, so you do not paste a long-lived API secret into the theme. Public templates named on the listing are page, blog_post, podcast, portfolio, book, event, product, company, and github. If Yoast, Rank Math, or AIOSEO should keep the tags, set Meta Ownership to External SEO plugin.
Outside WordPress, sign the request on your server. The comparison with @vercel/og and a DIY Satori pipeline is on the OG image API page. That is the page to use when the fix is a generated card rather than another upload.
Public API. Sign the JWT on your server.
POST https://ogpilot.com/api/v1/images
Content-Type: application/json
Accept: application/json
{"token":"YOUR_JWT_TOKEN"}
Required JWT claims: iss (verified domain), sub (API key prefix).
If iat is present, the image cache is valid for 24 hours from that
timestamp. Omit iat and the cache does not expire on its own.
Prefer an official SDK. Docs: https://ogpilot.com/docs
WordPress namespace. The plugin sends this after OAuth.
POST https://ogpilot.com/api/v1/wordpress/images
Authorization: Bearer WORDPRESS_ACCESS_TOKEN
Accept: application/json
template=blog_post
path=/posts/hello-world
title=Hello World
description=From WordPress
The official plugin sends this after OAuth.
The bearer token is the connection access token, not a JWT.
Do not paste it into the theme.
A missing or invalid token returns 401 unauthorized.
An inactive subscription returns 403 subscription_required.
MCP. generate_og_image takes a public URL.
Remote MCP URL: https://ogpilot.com/mcp
Transport: Streamable HTTP
Auth: OAuth 2.1 with PKCE
Docs: https://ogpilot.com/docs/mcp
generate_og_image
{ "url": "https://example.com/your-post" }
Optional style. Default is auto-detect.
Returns image_url.
generate_og_image needs a signed-in account with an active plan.
A trial is not enough.
The plugin FAQ says most images are ready within 5 to 10 minutes depending on queue load and the site traffic that triggers WP-Cron. The plan catalog lists Starter at $5/month ($50/year, 10,000-image quota), Builder at $49/month ($99/year, 100,000-image quota), and Growth at $99/month ($199/year, unlimited image quota). Those defaults are on pricing. A Stripe image_quota feature can replace the quota. The catalog has no per-image price.
Where to add og images for social media on a WordPress site
The query where to add og images for social media on wordpress site is about the editor, not a second tag name. The HTML location is always the document head. Wordpress add og images in the editor only after you know who prints the tag.
- Featured image: the post or page sidebar. Core will not copy that file into og:image.
- SEO plugin: the social image field on that post, and the sitewide fallback in the plugin settings.
- Generated card: Settings, OG Pilot Open Graph Images, or the API and MCP samples above. A wordpress plugin for og tags is whichever plugin you let own the head.
Yoast, Rank Math, and AIOSEO are upload-based. OG Pilot is the generated-card plugin. Running two of them without turning one off produces duplicate og:image tags. After you change the file, change the URL or force a rescrape. Platforms cache the bytes, not the WordPress editor.
Get an API key, install MCP, or use the plugin
The steps above are the change. An API key signs the CDN URL. MCP lets an agent call generate_og_image. The WordPress plugin is the path when the library is posts, pages, and WooCommerce.