Skip to main content
短.be

Open Graph Protocol (OGP)

A protocol that enables web pages to become rich objects in social media feeds by defining metadata like title, description, and image.

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.

Share on XHatena

Was this article helpful?

Related Terms

Related Articles

FAQ

What happens if OGP isn't configured?
When links are shared on social media, previews won't display correctly. The title or image may show unintended content, or the preview may not appear at all.
What's the recommended image size for OGP?
1200x630 pixels is recommended. This aspect ratio (1.91:1) displays optimally on major social platforms including Facebook, Twitter, and LinkedIn.

Ready to create a short URL?

Shorten a URL for Free