Documentation
Add URL-based OG image generation to your website in under 2 minutes. MyOG detects the page content and brand automatically.
Pick a layout (optional):
MyOG detects content and branding automatically. The layout only controls composition.
Add this to your <head> for pages you want OG images generated:
<meta property="og:image" content="https://api.myog.social/og?url={yourURL}&template=screenshot-right" /> Replace {yourURL} with your page URL.
The a account hint is optional and appears here when available. The url parameter is required; template is optional.
Add your domain
Add your domain to the dashboard so we can verify requests.
Add the meta tag
Include the OG image meta tag in your page's head.
We detect the page
When someone shares your URL, we detect the title, description, brand signals, logo, colors, and page imagery.
Generate and cache
MyOG composes the OG image and caches it for 7 days for fast delivery.
Step-by-step instructions for popular platforms:
Ghost
Code injection
WordPress
Official plugin or code snippet
Jekyll / GitHub Pages
Head template
Shopify
Liquid snippet for Online Store themes
Webflow
Custom head code for static and CMS pages
Squarespace
Page header code injection
Wix
Advanced SEO tags and Velo notes
Framer
Metadata and social image workflow
Next.js
App Router metadata API
Nuxt
useSeoMeta and route helpers
SvelteKit
load data plus <svelte:head>
Astro
Reusable Head.astro component
Gatsby
Head API SEO component
Eleventy
Layout snippet with page.url
Hugo
Open Graph partial override
Docusaurus
themeConfig metadata and MDX head
Rails
ERB layout helper with request URL
Django
Template block using request URL
React Router
Route meta export for Framework Mode
Laravel
Blade layout snippet with URL helpers
Using a different platform? Press the Get help button. For debugging notes, see the Open Graph articles.
https://api.myog.social/ogurl is required. a and template are optional; content and branding are detected automatically.
urlThe full URL of your page
Required · String
aAccount hint, shown in snippets when you are signed in and it is available
Optional · String
templateLayout choice, such as screenshot-right or brand
Optional · String
Setup takes less than 2 minutes.
Already have an account?
5c5e512e103f189148a01e387ffb76c1ad18e1fc