Automatic OG Images for WordPress

Generate perfect social cards for every WordPress post. Works alongside Yoast, RankMath, or standalone.

Get Started

Plugin Compatible

Works alongside popular SEO plugins like Yoast and RankMath.

Auto-Generated

Images are generated automatically for each post and page.

PHP Native

No external dependencies—just pure PHP integration.

Example 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' );

Ready to improve your social shares?

Join thousands of developers using Imago API for stunning OG images.

Start Building Free