Reputation: 14008
If I try and make a facebook like button to like the following url:
http://go-style.co.uk/nggallery/page-7029/image/35/
The button likes the url:
http://go-style.co.uk/test-gallery/
Does anyone know why this is happening? I have put it through the linter at:
http://developers.facebook.com/tools/linter
but it doesnt seem to help much.
This is driving me CRAZY! please help!
Here is a typical like button that I've been trying that won't work:
<iframe scrolling="no" frameborder="0" style="border: medium none; overflow: hidden; width: 80px; height: 21px;" allowtransparency="true" src="http://www.facebook.com/plugins/like.php?href=http://go-style.co.uk/nggallery/page-7029/image/34/&layout=button_count&show_faces=false&width=80&action=like&font=lucida+grande&colorscheme=light"></iframe>
Upvotes: 4
Views: 3550
Reputation: 191
Just adding that for best results with Facebook "Like" or "Share" buttons you should use the Open Graph meta tags in your page headers. Good docs on using are here: http://developers.facebook.com/docs/opengraph/
Example for your URL:
<meta property="og:url" content="http://go-style.co.uk/nggallery/page-7029/image/35/"/>
Upvotes: 0
Reputation: 14008
It was facebook caching problem in the end. Because it had cached the urls when I'd done them wrong, when I did them right it was displaying the old url.
Upvotes: 3