Contents
How to specify a canonical URL in Facebook link sharing?
Facebook link sharing allows you to specify a canonical URL for a resource in the HTML metadata for the resource. This is accomplished by using an HTML meta tag to specify the canonical URL for the page. The canonical URL is specified using the og:url property.
Facebook gives us a great little tool to help us when dealing with these meta tags – you can use the Debugger to see how Facebook sees your URL, and it’ll even tell you if there are problems with it.
What does a link preview do on Facebook?
A Link Preview is the clickable box that contains an image from your link, the title of the link, and a short description of the content. You can publish a Facebook post with a link preview, with an attached image or video, or as text only. See the following example posts:
How to change the URL of a Facebook page?
The following example demonstrates how to change the URL for a page while preserving the Facebook share link and related metrics. It assumes that the URL for the page has already been changed. Use an HTTP 301 or 302 redirect to send visitors to the new URL when they visit the old one.
Can a page be assumed to be the canonical URL?
If og:url isn’t specified, then the URL of the page is assumed to be the canonical URL. The following example demonstrates how to change the URL for a page while preserving the Facebook share link and related metrics.
How does the canonical tag work in Google?
The tag tells Google and other search engines which page is the original (or canonical) version. The search engine then knows to index only the canonical page, and all the “link juice” to the duplicate page gets passed to the canonical page.
Which is the canonical version of this page?
Here’s what each part of that code means in plain English: link rel=“canonical”: The link in this tag is the master (canonical) version of this page. href=“https://example.com/sample-page/”: The canonical version can be found at this URL.