views:

14

answers:

1

I'm implementing the Facebook "Like" button on our site, using the Javascript SDK.

It's working brilliantly, but when a user posts a comment, that message links back to the canonical link in the <head> section.

that's severely unwanted behaviour. Why go through the trouble of manually providing a link to have it overridden?

Anyone know a solution?

+1  A: 

No - that's a feature of the Like system.

That's how it knows that a "likes" to disparate-looking URLs are actually to the same resource. It's done this way quite deliberately - and I agree with the implementation.

In short - this is acting as intended. Either dump the canonical link, or implement this differently.

Peter Bailey

related questions