All apps
og-refresh: Link Preview (Open Graph) Refresher
Tool

og-refresh: Link Preview (Open Graph) Refresher

A CLI that refreshes your link previews on Facebook and LinkedIn after a deploy — and finds the OG-tag bugs that keep previews from showing.

Status
In production
Build time
3h
Category
Tool

This app is open on GitHub. Fork it, use it and build on it. I like giving it to the community.

About the project

When you ship a new site or change a share image, platforms keep serving the old link preview — Facebook for up to 30 days. And LinkedIn silently drops WebP images, so the preview doesn't render at all. og-refresh forces Meta (Facebook, Instagram, Messenger) to re-read your pages right away, and lints your pages for exactly those Open Graph traps (WebP, missing dimensions, oversized images).

It started as a by-product of moving the AI First site to a new platform, where I needed to refresh previews across nearly 200 pages at once. It's fully deterministic (no LLM to run), open source, and dependency-light. A neat piece of vibe coding: a small thing you build in an evening that saves you repetitive manual work in Facebook's and LinkedIn's debuggers.

What you get

  • New link previews show up immediately, not days later.
  • Catches the WebP trap that makes LinkedIn render no image.
  • Checks your whole site straight from the sitemap.
  • Free, open source, no AI and no subscription.

How it works (under the hood)

  • Re-scrape via the Meta Graph API — self-paces against the rate limit and resumes.
  • OG-tag linter: WebP, dimensions, image weight, twitter:card.
  • Input from URLs, a file, or a sitemap.
  • Plain Python, single dependency (python-dotenv).

Built with

PythonMeta Graph APIOpen GraphCLI

Want to build like this too?

I teach building apps without programming in the AI First course.

AI First course