og:url: the canonical address for shares

og:url is the permanent, canonical URL of the page. Facebook groups shares and reactions under it and may fetch it instead of the address that was pasted. Set it to the same absolute URL as your rel=canonical.

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

Check og:url on a live page

Rules for og:url

  • Required by the Open Graph protocol.
  • Absolute URL, including https://.
  • Strip tracking parameters (utm_*, fbclid) and session ids.
  • Match <link rel="canonical"> exactly, including trailing slash.

Common mistakes

  • Pointing every page’s og:url at the home page: Facebook then shows the home page card for every link.
  • Leaving a staging domain in og:url after launch.
  • http:// og:url on an https site, which splits share counts.

Write the full tag set in the generator, or see all tags in the Open Graph tag reference.

Frequently asked questions

What does og:url do?

It names the canonical URL for the object being shared. Facebook uses it to merge engagement for the same page reached through different URLs, and may scrape the og:url instead of the pasted link.

Should og:url be the same as the canonical URL?

Yes. Point both at the same absolute URL so search engines and social platforms agree on which address represents the page.

Why does every link to my site show the home page preview?

Usually because og:url on every page points to the home page. Facebook follows og:url and shows that page’s card. Make og:url page-specific.