Open Graph Canonical URL PropertyRequired

og:url

The og:url tag defines the canonical URL of the object that will be used as its permanent ID in the social graph.

Tag Syntaxproperty="og:url"
Recommended Size / LimitAbsolute HTTPS URL
Protocol RequirementMandatory for OGP

HTML Code Example

<meta property="og:url" content="https://example.com/blog/article-slug/" />

Best Practices

  • Always use the absolute canonical HTTPS URL without tracking parameters.
  • Ensure og:url matches the <link rel="canonical"> tag of the page.
  • Include trailing slashes consistently if your site structure uses them.

Platform Rendering Rules

FacebookConsolidates likes and shares under the single specified og:url.
LinkedInUses og:url as the target hyperlink for post card clicks.

Common Implementation Pitfalls

  • Using HTTP instead of secure HTTPS.
  • Including session IDs or utm_source tracking parameters in og:url.

Related Open Graph Resources