Platform Guide
Add automatic OG images to your Ghost blog in under 2 minutes using code injection.
In your Ghost admin panel:
Paste this code in the Site Header section:
<meta
property="og:image"
content="https://api.myog.social/og?url={{url absolute="true"}}"
/>{{url absolute="true"}} is a Ghost template variable that automatically inserts the current page URL.
Tip: You can choose from different templates (Brand, Screenshot Right, Screenshot Bottom, Screenshot Only) in the MyOG.social dashboard.
Click Save in Ghost.
Test your integration using our OG Preview tool or share a link on Twitter/LinkedIn to see your new OG image.
OG image not showing?
Make sure your domain is added to your MyOG.social dashboard. Social platforms also cache OG images, so you may need to use their cache refresh tools (e.g., Twitter Card Validator, LinkedIn Post Inspector). See our OG image testing guide for more debugging tips.
Ghost already has an OG image set?
If you've set a feature image or custom OG image in Ghost, those take precedence. The MyOG meta tag acts as a fallback when no image is explicitly set. To always use MyOG, you can remove the feature image from posts.
Sign up for free and add beautiful OG images to your Ghost blog.
Already have an account?
694c98497a352253877457ad1baef2d3f7a9c3f2