2012-08-10 51 views
0

我在我的Fancybox中为我的网站使用了Facebook like按钮,我使用Zenphoto。这似乎只能使Fancybox中的按钮显示出来。让FB喜欢抓取正确的URL

代码:

this.title += '<iframe src="//www.facebook.com/plugins/like.php? href=http://www.dagloos.com' + this.href +   '&amp;layout=button_count&amp;show_faces=false&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:20px;" allowTransparency="true"></iframe>'; 

当有人点击现在类似按钮,通知等空白显示的Facebook页面上,与直接的图像网址。我在我的网站的标题中添加了og标签,但在喜欢的时候并没有抓住它们。可能因为iFrame版本已过时。

我怎么能让它像在图片缩略图上显示在脸书上,如果有可能,其余的信息(网站标题,描述等)?

回答

1
<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> 

在这里

您的网络地址的href类型后