简体   繁体   English

Facebook喜欢按钮喜欢错误的网址

[英]facebook like button liking wrong url

If I try and make a facebook like button to like the following url: 如果我尝试使用类似于facebook的按钮来喜欢以下网址:

http://go-style.co.uk/nggallery/page-7029/image/35/

The button likes the url: 按钮喜欢网址:

http://go-style.co.uk/test-gallery/ 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. 最终是facebook缓存问题。 Because it had cached the urls when I'd done them wrong, when I did them right it was displaying the old url. 因为当我做错了它时它已经缓存了网址,当我做对了它时就显示了旧网址。

您是否尝试使用此工具创建链接按钮?

Just adding that for best results with Facebook "Like" or "Share" buttons you should use the Open Graph meta tags in your page headers. 只需在Facebook“赞”或“共享”按钮中添加最佳效果,您就应该在页眉中使用Open Graph元标记。 Good docs on using are here: http://developers.facebook.com/docs/opengraph/ 关于使用的好文档在这里: 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/"/>   

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM