Generate perfect social cards for every WordPress post. Works alongside Yoast, RankMath, or standalone.
Get StartedWorks alongside popular SEO plugins like Yoast and RankMath.
Images are generated automatically for each post and page.
No external dependencies—just pure PHP integration.
<?php
// Add to your theme's functions.php
function imago_og_image() {
if ( is_single() || is_page() ) {
$title = rawurlencode( get_the_title() );
$api_key = 'YOUR_IMAGO_API_KEY';
$og_url = "https://imagoapi.com/api/og/generate?title={$title}&template=modern&api_key={$api_key}";
echo '<meta property="og:image" content="' . esc_url( $og_url ) . '" />' . PHP_EOL;
echo '<meta name="twitter:image" content="' . esc_url( $og_url ) . '" />' . PHP_EOL;
}
}
add_action( 'wp_head', 'imago_og_image' );
Join thousands of developers using Imago API for stunning OG images.
Start Building Free