How to Add Open Graph Tags in Framer (Social Sharing SEO Guide)
When someone shares your Framer site on social, Open Graph tags decide what shows up. Here's how to set them per page, per CMS item, and test before you ship.

RankFrame team
Makers of RankFrame, by 7 Seers
·
·
13 min read

What Are Open Graph Tags?
Open Graph is a protocol originally developed by Facebook in 2010 that defines a set of HTML meta tags which describe a web page's content for social platforms and messaging apps. When a platform receives a URL to preview, it fetches the page HTML and reads the Open Graph meta tags in the head section to construct the preview card.
Open Graph tags are placed in the <head> section of your HTML document and use the property attribute rather than the name attribute used by standard meta tags. They are identified by the og: prefix:
The Open Graph protocol lists four required tags: og:title, og:type, og:image and og:url. Add og:description too, because almost every platform shows it under the title. Without them, platforms either refuse to show a card or use their own best guess, which is typically the page title from the HTML title element, a random excerpt from the page text, and no image.
Which Platforms Use Open Graph Tags?
Open Graph is now the universal standard for social sharing previews. Every major social platform and messaging app reads OG tags:
Facebook: Created the OG protocol. Reads all standard og: tags. Uses the Facebook Sharing Debugger for testing.
LinkedIn: Reads og:title, og:description, og:image. Has its own Post Inspector tool. Caches aggressively.
X (Twitter): Reads Twitter Card tags preferentially. Falls back to OG tags. Requires twitter:card to activate cards.
Slack: Reads og:title, og:description, og:image to generate link unfurls in channels and DMs.
WhatsApp: Reads og:title, og:description, og:image for link preview cards. Square-crops the image for display.
iMessage: Uses og:title, og:description, og:image for rich link previews on iOS and macOS.
Discord, Telegram, and most other messaging platforms also read Open Graph tags for link preview generation. Setting OG tags correctly in Framer improves the appearance of your site every time anyone shares a link anywhere.
The 4 Essential OG Tags
Tag | What It Controls | Recommended Value |
|---|---|---|
og:title | The bold headline shown in the share card. Should match or be close to your page's H1 or title tag. | Under 60 characters to avoid truncation on most platforms. |
og:description | The descriptive text shown below the title in the share card. | 100 to 200 characters. Write it as a compelling one-sentence summary that makes people want to click. |
og:image | The preview image shown in the share card. This is the most impactful tag for click-through rate. | 1200x630px, JPEG or PNG, under 8MB (Facebook's limit). Use an absolute URL including the https:// prefix. |
og:url | The canonical URL of the page. Used by platforms to deduplicate shares and count social engagement correctly. | The full canonical URL of the page, matching your canonical link tag. |
Beyond the four essential tags, there are useful supplementary OG tags. og:type defaults to "website" but should be set to "article" for blog posts and news content. og:site_name displays your brand name separately from the page title in the share card preview on some platforms.
Twitter Card Tags
X (Twitter) introduced its own meta tag format called Twitter Cards before OG became fully universal. While X now falls back to reading OG tags, Twitter Card tags take precedence when both are present. Setting explicit Twitter Card tags gives you control over how your Framer site appears specifically on X.
Tag | Purpose | Recommended Value |
|---|---|---|
twitter:card | Defines the card type. Required for X to show any card at all. | summary_large_image for most pages. Shows a full-width image above the text. |
twitter:title | The headline shown in the X card. Can differ from og:title for X-specific copywriting. | Under 70 characters to avoid truncation in X's feed layout. |
twitter:description | The description text in the X card. | Under 200 characters. X may truncate longer descriptions. |
twitter:image | The image displayed in the X card. Can be different from og:image. | Same 1200x630px specification as og:image. Must be an absolute URL. |
twitter:site | Your X account handle, displayed in the card as attribution. | @yourhandle (optional, but adds credibility and branding) |
summary vs summary_large_image
The summary card type shows a small square thumbnail on the left with text on the right. The summary_large_image card shows a full-width image above the title and description. For most Framer marketing sites and blog posts, summary_large_image is the right choice as it is significantly more eye-catching in the X feed.
Full OG and Twitter Card Code Example
The complete set of Open Graph and Twitter Card tags for a Framer blog post or landing page:
Notice that og:image:width, og:image:height, and og:image:alt are included alongside the main og:image tag. The width and height hints help some platforms render the preview faster without fetching the image first. The alt text supports accessibility and is used by screen readers when OG cards are displayed in accessible contexts.
OG Image Requirements
The OG image is the most visible element in a social share card. Getting the specifications right ensures your image renders correctly across all platforms and is not cropped, distorted, or refused.
Size and dimensions
Recommended size: 1200x630 pixels (1.91:1 aspect ratio). This is the optimal size for Facebook, LinkedIn, and most other platforms.
Minimum size: 600x315 pixels. Below this, Facebook may not display the image as a large card.
Square (1:1) images: 1200x1200px if you need a single image that works for both OG cards and WhatsApp/iMessage which often crop to square. Not recommended for pages where a landscape image is important.
Format and file size
Format: JPEG or PNG. Facebook and LinkedIn explicitly support these. Avoid WebP for OG images as some older crawlers and platform image renderers do not support WebP.
File size: Facebook accepts files up to 8MB, and other platforms set their own limits. Under 1MB is strongly recommended for fast preview loading. A 1200x630 JPEG at 80% quality is typically 80 to 150KB.
Content and safe zones
Keep all important content (logos, headlines, faces) within the central 800x420px safe zone. Platforms that display square or tall crops (WhatsApp, iMessage) will show only the center of your image.
Ensure text in the OG image is large enough to read at the dimensions shown in social feeds, where the card may display at 500px wide or less on mobile.
Include your brand logo or domain name somewhere visible in the OG image so shares are clearly attributable to your site even when the URL is not prominent.
How to Set a Global OG Image in Framer
Framer lets you set a site-wide default OG image, title, and description from Site Settings. This global setting applies to every page on your site that does not have a page-specific override.
Open Framer Site Settings
In the Framer editor, open your project's Site Settings.
Stay on the General Tab
Inside Site Settings, stay on the General tab. This holds your Site title and Site description for the whole site. See site-wide meta titles and meta descriptions for what to write there.
Framer creates your sitemap and robots.txt for you. If you need a custom robots.txt, it goes in Site Settings > Hosting > Files (Pro and Enterprise plans).
Upload Your Social Image
In Site Settings, find the site's social image and upload your prepared 1200x630px OG image. Framer hosts this image on its CDN and generates the absolute URL automatically.
Once uploaded, Framer outputs this image as the og:image value for all pages. It also outputs the same URL as twitter:image for Twitter Card previews.
Framer auto-handles the og:url tag
Framer automatically sets the og:url meta tag to the current page's canonical URL. You do not need to manually configure this for each page.
How to Override OG Tags Per Page in Framer
The global OG image works as a fallback. For important pages where the content differs significantly (product pages, a pricing page, a key blog post), you should set a custom OG image that reflects the specific page content. A custom image makes the preview match what the page is about, which gives people a clearer reason to click.
Select the Page under Page Settings
Open Site Settings and select the page you want under Page Settings in the left panel.
Open Page Settings
Page Settings shows the page Title, Page Description and, under Page images, the Social preview image.
Set the Social Preview Image
Under Page images, click Social preview and upload the image for this page. Framer uses this page's Title and Page Description for the share card's title and description.
Upload your page-specific OG image and fill in the Title and Page Description. These values override the global settings only for this page. All other pages continue to use the site-level defaults.
How to Set OG Tags for Framer CMS Collection Pages
CMS collection pages present a unique challenge: each item in the collection (each blog post, each case study, each product) should have its own unique OG title, description, and image. Manually overriding each item is impractical for collections with more than a handful of items.
Framer handles this by letting you bind the OG fields for a CMS collection template to dynamic CMS variables. Here is how to set it up:
Step 1: Add OG fields to your CMS collection
In the Framer CMS collection editor, add the following fields if they do not already exist:
A Plain Text field for the meta title (for example "Meta Title"). Framer uses it for both the search title and og:title.
A text field named "OG Description" or "Meta Description" (a short summary for use in both meta description and og:description).
An image field named "OG Image" or "Social Image" (separate from your article's featured image if you want different cropping).
Step 2: Bind the collection template SEO fields
Open the CMS collection template page in the Framer editor (the template that defines how individual collection items render). Open the CMS page's Page Settings.
Under Page images, click Social preview, choose CMS Variables and select your OG Image field. In the Title and Page Description fields, type the field names in curly braces, for example {{Meta Title}} and {{Meta Description}}.
Step 3: Publish and populate your CMS items
With the bindings set, any CMS item that has an OG Image uploaded will use that specific image in its social preview. For items without an OG Image, test the share card after you publish (see How to Test below) so you know which image appears. Fill in OG image, title, and description for your most important CMS items, particularly the blog posts and case studies you actively promote on social media.
CMS OG images and Framer bandwidth
OG images are loaded by social platform crawlers when someone shares a link, not by regular page visitors. They contribute to bandwidth consumption but typically at much lower volume than page asset delivery. Keep OG images under 1MB as a best practice.
Advanced: Adding OG Tags via Framer Custom Code
Framer's native SEO settings handle the most common OG scenarios. However, there are situations where you need more control than the UI provides. Framer's Custom Code lets you add any OG meta tag directly as HTML, placed in the head.
Use cases for the custom code approach:
Setting twitter:site or twitter:creator globally (your X account handle, not supported in Framer's native SEO UI).
Adding og:type as "article" with article:published_time and article:author for blog post pages.
Adding og:locale for multi-language sites.
Setting an og:image:secure_url alongside og:image for platforms that require explicit HTTPS image URLs.
To add custom OG tags in Framer:
Open Site Settings and select the Custom Code tab. Click Add Script (or + if you already have scripts) and give it a name.
Paste your meta tags, set the placement to the head, and pick the pages it should run on (all pages, or only your blog's CMS page).
Publish the site for the changes to take effect.
Custom code overrides and duplicates
If Framer's native SEO settings already output an og:title tag and you also add one in Custom Code, the page will have two og:title tags. Platforms differ in which copy they read, so avoid duplicates: only add a tag in Custom Code if Framer does not already output it. Framer's generated tags appear in the head before your Custom Code head content. Test with the Facebook Debugger to confirm which value is being read.
How to Test Your Framer OG Tags
Always test OG tags using your live published Framer URL. Social platform crawlers cannot access Framer's preview environment or password-protected staging sites. The page must be publicly accessible. Framer also recommends its own Link Preview tool to see how a page appears on Google, X, LinkedIn and Slack.
Facebook Sharing Debugger
The Facebook Sharing Debugger at developers.facebook.com/tools/debug is the most comprehensive OG testing tool available. Enter your URL and it shows exactly which OG tags Facebook read from your page, any warnings or errors, and a preview of how the share card will appear. It also has a "Scrape Again" button that forces Facebook to clear its cache and re-fetch your OG tags. Use this whenever you update OG tags on a page that was previously shared, as Facebook caches OG data aggressively.
LinkedIn Post Inspector
Visit linkedin.com/post-inspector and enter your URL to preview exactly how LinkedIn will display your page when shared as a post. LinkedIn has its own OG cache, so changes to OG tags may not appear immediately without using the Inspector to force a re-fetch.
Twitter Card Validator
X no longer maintains a public card validator tool as an open interface, but you can test Twitter Card rendering by posting a URL in a tweet preview within the X app or web interface. The card should render inline. For debugging, the opengraph.xyz tool provides Twitter Card previews alongside OG previews for multiple platforms simultaneously.
opengraph.xyz
opengraph.xyz is a free multi-platform OG preview tool. Enter your URL and it shows how your link will appear on Facebook, Twitter, LinkedIn, Slack, and WhatsApp in a single view. It is the fastest way to spot problems across all platforms at once without using each platform's individual debugging tool.
Common OG Mistakes on Framer Sites
These are the most frequently seen OG configuration errors on Framer sites:
1. Using a relative URL for og:image
The og:image value must be an absolute URL including the protocol. /assets/og-image.jpg will not work. The correct format is https://yourdomain.com/assets/og-image.jpg. Framer's native OG image upload generates absolute URLs automatically, but if you add OG tags manually via Custom Code, ensure you use full absolute URLs.
2. Not updating the cache after changing OG tags
Facebook, LinkedIn, and other platforms cache OG data. If you update your OG image or title in Framer and republish, the old preview still appears when someone shares the link because platforms serve their cached version. Use the Facebook Sharing Debugger's "Scrape Again" feature and LinkedIn's Post Inspector to force a cache refresh for specific URLs.
3. Using an OG image that is too small
Images smaller than 600x315 pixels still show on Facebook, but much smaller. Facebook's minimum is 200x200 pixels. Create OG images at 1200x630px and upload them at full resolution.
4. Setting the same OG image for every page
Using a generic branded OG image for every page on your site is better than no image, but it is a missed opportunity. Shares of specific blog posts, product pages, or case studies are far more compelling when the preview image reflects the specific content being shared. Invest in page-specific OG images for your highest-value pages.
5. Including text in the OG image that is too small to read
OG images often display at 500px wide or less in social feeds on mobile. Text that appears readable when designing at 1200px may be completely illegible at display size. Use large, bold typography (minimum 40px equivalent at the 1200px canvas size) for any text included in OG images.
6. Not setting og:image for CMS collection items
Framer CMS blog posts and collection items without a bound OG image field do not get their own preview image, so shares of individual blog posts show a generic image rather than the post's featured image. Set up CMS OG image binding as described above and populate images for your most important posts.
7. Missing og:type on article pages
The default og:type value is "website," which is correct for the homepage and product pages. Blog posts and news articles should use "article" as the type, which unlocks additional properties like article:published_time and article:author that platforms use to display publication dates and author attribution in rich shares.
Related features
Meta Tags: Write and check titles and descriptions for every page, with AI.
Frequently asked questions
Does Framer support Open Graph tags?
Yes. Framer natively supports Open Graph tags through Site Settings and individual page settings. You set the site-wide title, description and social image in Site Settings, and override them for any page in its Page Settings (Title, Page Description and Page images > Social preview). For CMS collection pages, Framer supports binding OG fields to dynamic CMS variables so each collection item generates its own unique social preview data automatically.
How do I add a social sharing image in Framer?
What size should the Framer OG image be?
How do I test Open Graph tags for my Framer site?
Can you set different OG images per page in Framer?
Do Twitter Cards work on Framer sites?
Put this guide to work in Framer
RankFrame handles meta tags, schema, alt text and Google indexing from inside the Framer editor. Try every feature free for 7 days.
Related guides
Framer SEO
Is Framer Good for SEO? Honest 2026 Analysis
Short answer: yes, with caveats. Framer's static pages, edge CDN and clean HTML give it a strong technical start. But the workflow gap to actually ranking is real.
Plugin Review
The Best Framer SEO Plugin in 2026 (And Why RankFrame Was Built for Framer)
RankFrame was the first native SEO plugin built for Framer. Here's what it does inside the editor, and why a WordPress-style SEO plugin would not fit how Framer works.
SEO Checklist
Framer SEO Checklist 2026: 27 Steps to Rank Your Framer Site
Most Framer sites miss easy SEO wins because there's no built-in checklist. Twenty-seven steps, ordered foundation to advanced, covering every gap.