Preview Open Graph Metadata with a Browser Extension
In this article
Open Graph (OG) metadata controls how your links appear when shared on social media, messaging apps, and search results. Previewing it before publishing helps you catch missing images, wrong titles, or broken descriptions. A browser extension lets you inspect any page's OG tags instantly without digging through source code. This guide covers installing and using two popular extensions—one for Chrome/Edge and one for Firefox—plus troubleshooting common issues.
What You'll Need
- A modern browser: Chrome, Edge, Firefox, or Brave (all support extensions).
- Access to the extension store for your browser (Chrome Web Store, Firefox Add-ons, or Edge Add-ons).
- The URL of a page you want to preview (your own or any public page).
Step-by-Step
- Choose an extension. For Chrome, Edge, or Brave, install Meta SEO Inspector or OG Preview from the Chrome Web Store. For Firefox, install Open Graph Preview from the Firefox Add-ons site. All are free and open-source.
- Install the extension. Click “Add to Chrome” or “Add to Firefox” and confirm the permission prompt. Most OG preview extensions only request access to read page metadata, not your browsing history.
- Navigate to the page you want to preview. Go to the exact URL whose OG tags you want to check. For a local development site (like localhost), make sure the server is running.
- Open the extension. Click the extension icon in your browser toolbar. If you don't see it, click the puzzle piece icon (Chrome/Edge) to find it, then pin it for easy access.
- View the OG metadata. The extension popup will display the page's OG title, description, image, URL, and type. Some extensions also show Twitter Card data (which is similar but separate).
- Check the image preview. Most extensions show a thumbnail of the OG image. If it's missing or broken, the extension will indicate that.
- Test social shares (optional). Some extensions, like OG Preview, include a “Simulate Share” button that shows how the link will appear on Facebook, Twitter, LinkedIn, or WhatsApp. Click it to see a mockup.
- Copy or export data. If you need to share the metadata with a developer, use the “Copy” button in the extension to copy all tags as JSON or plain text.
- Refresh after changes. If you edit the OG tags on your page, reload the page (Ctrl+R or Cmd+R) and reopen the extension to see the updated values.
Common Mistakes
- Checking a page that redirects. If a URL redirects (e.g., from HTTP to HTTPS), the extension will show the OG tags of the final destination, not the original URL. Always test the final URL.
- Forgetting to clear cache. Browsers cache OG tags aggressively. If you've updated tags but the extension shows old ones, hard-refresh (Ctrl+Shift+R) or clear cache.
- Using a page with no OG tags. Many pages, especially older ones, have no OG metadata. The extension will show “No Open Graph tags found” or a blank result. That's not an extension error.
- Confusing OG with Twitter Cards. These are separate systems. A page can have OG tags but no Twitter Card tags, and vice versa. Check both if you need both.
- Testing a local file (file://). Extensions often cannot read metadata from local files due to browser security. Use a local server (like MAMP or a simple Python server) instead.
Tips
- Use the built-in Facebook Sharing Debugger as a backup—it shows exactly what Facebook sees, including caching issues. But the extension is faster for quick checks.
- Check OG image dimensions. Most platforms require at least 1200×630 pixels. The extension may show dimensions; if not, right-click the image and select “Inspect” to see them.
- Test on multiple platforms. The same OG tags may render differently on LinkedIn vs. Twitter. Use the simulation feature if available.
- Verify the og:url tag. This tag tells platforms which URL to link to. If it's wrong, social shares will point to the wrong page.
- Keep extensions updated. OG standards change rarely, but extensions get bug fixes. Enable automatic updates in your browser settings.
Troubleshooting
- Extension shows “No OG tags” but the page has them. This usually means the page is blocking the extension via Content Security Policy. Try a different extension or use the browser's developer tools (F12 → Elements tab → search for
og:). - Image preview is blank. The image URL may be relative (e.g.,
/images/og.jpg) instead of absolute. Platforms require absolute URLs. Fix the page's HTML. - Extension doesn't work on localhost. Some extensions restrict access to localhost for security. Check the extension's permissions or use a public staging URL.
- After editing tags, the extension still shows old data. Hard-refresh the page and close/reopen the extension popup. If it persists, clear browser cache completely.
- Extension crashes or freezes. Disable other extensions that might conflict, then re-enable them one by one to find the culprit.
Frequently Asked Questions
Can I preview OG metadata without installing an extension?
Yes. You can use online tools like the Facebook Sharing Debugger, LinkedIn Post Inspector, or Twitter Card Validator. They require pasting the URL, which takes extra steps but works on any device.
Are these extensions safe to install?
Stick to well-known extensions with many users and positive reviews. Read the permissions—if an extension asks for access to all websites and your browsing history, that's a red flag. The ones mentioned here only read page metadata.
Do OG preview extensions work on any website?
They work on any website you can visit, except those that block extensions via Content Security Policy (rare). Some sites with heavy JavaScript might load OG tags dynamically—wait a few seconds after page load before opening the extension.
Can I edit OG tags using these extensions?
No. These are read-only tools. To edit OG tags, you must change the HTML source of the page (usually in the section) and re-upload it.
What's the difference between OG and Twitter Card metadata?
OG (Open Graph) is used by Facebook, LinkedIn, Pinterest, and most others. Twitter Cards are specific to Twitter. They are separate meta tags, though they often contain similar information. Some extensions show both.
Why does my OG image look different on different platforms?
Each platform has its own cropping rules. For example, Facebook crops to 1.91:1 ratio, while Twitter may show a square. Always test on the platforms you care about most. The extension's simulation feature helps, but real platforms may still vary.