Facebook 让FB喜欢抓取正确的URL
我在Fancybox的iFrame中使用了一个类似Facebook的按钮,在我的网站上我使用了Zenphoto。这似乎是使like按钮显示在Fancybox中的唯一方法 守则:Facebook 让FB喜欢抓取正确的URL,facebook,iframe,facebook-like,facebook-opengraph,Facebook,Iframe,Facebook Like,Facebook Opengraph,我在Fancybox的iFrame中使用了一个类似Facebook的按钮,在我的网站上我使用了Zenphoto。这似乎是使like按钮显示在Fancybox中的唯一方法 守则: this.title += '<iframe src="//www.facebook.com/plugins/like.php? href=http://www.dagloos.com' + this.href + '&layout=button_count&a
this.title += '<iframe src="//www.facebook.com/plugins/like.php? href=http://www.dagloos.com' + this.href + '&layout=button_count&show_faces=false&width=500&action=like&font&colorscheme=light&height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:20px;" allowTransparency="true"></iframe>';
this.title+='';
当有人现在点击like按钮时,facebook页面上会显示一个空白的like通知,带有直接的img url。我将og标签添加到我的网站标题中,但它不会在喜欢的时候抓取它们。可能是因为iFrame版本已经过时
我如何才能让类似的内容显示在facebook上,并显示图像缩略图,如果可能的话,显示其余信息(网站标题、描述等)?
在href之后,在此处键入您的网址
<iframe src="http://www.facebook.com/widgets/like.php?href=type in ur web address here"
scrolling="no" frameborder="0"
style="border:none; width:450px; height:80px"></iframe>