短.be

Open Graph Protocol (OGP)

Aug 18, 2025 · About 1 min read

SEO

The Open Graph Protocol (OGP) is a set of meta tags originally created by Facebook that allows web pages to control how they appear when shared on social media platforms. By including OGP tags in a page's HTML head, developers can specify the title, description, image, and URL that social platforms display in link previews.

The core OGP tags are og:title, og:description, og:image, and og:url. Additional tags like og:type, og:locale, and og:site_name provide further context. When a user shares a URL on Facebook, LinkedIn, or other platforms that support OGP, the platform's crawler fetches the page and reads these tags to generate the preview card. Social media development books on Amazon explain the protocol.

For URL shortening services, OGP is particularly relevant because short URLs are frequently shared on social media. The shortening service must decide whether to serve its own OGP tags (showing the shortening service's branding) or pass through the destination page's OGP tags (showing the original content's preview). Most services opt for transparent pass-through to provide the best user experience.

Testing OGP implementation is important because social platforms cache OGP data aggressively. Facebook's Sharing Debugger and LinkedIn's Post Inspector allow developers to preview and refresh cached OGP data. Web development testing books on Amazon cover debugging techniques.

Related Terms

Ready to create a short URL?

Shorten a URL for Free