开发者

facebook like button liking wrong url

开发者 https://www.devze.com 2023-02-14 20:02 出处:网络
If I try and make a facebook like button to like the following url: http://go-style.co.uk/nggallery/page-7029/image/35/

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 开发者_Python百科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/&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=lucida+grande&amp;colorscheme=light"></iframe>


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.


Did you try to create a link button with this tool?


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/"/>   
0

精彩评论

暂无评论...
验证码 换一张
取 消