: How do you share a non-canonical URL on Facebook? The company I work for has 5 domain names for 5 different markets within the country. Those domains have their own branded sites and share
The company I work for has 5 domain names for 5 different markets within the country. Those domains have their own branded sites and share content between them. We place canonicals on each piece of content so we don't get pinged for duplicate content. Everything is above board. All SEO is white hat, nothing fishy going on.
If domainA.com/articleA has a canonical of domainB.com/articleA and is placed on marketA's Facebook page Facebook will use the domainB.com address!! This is highly undesired because each market have their own managed Facebook accounts and domainB getting the link juice for domainA's work is just not going down well.
I can see that I can have an og:url tag which doesn't help us as there will still be only a single URL in that method.
Next to removing the canonical, I don't see how we can do this and I'm desperately hoping that there is some method for doing what we need.
More posts by @Nimeshi995
1 Comments
Sorted by latest first Latest Oldest Best
One solution would be to not show the rel canonical meta tag when Facebook is crawling the page. Facebook's bot uses a user agent string that contains "facebookexternalhit". If "facebookexternalhit" is in the user agent, then don't show the meta tag.
Note that showing different content to a robot is called "cloaking". I haven't seen any evidence that Facebook doesn't allow this type of cloaking for their user agent. If you were to cloak for Googlebot like this, then Google could very likely remove your site from the Google search results.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.