Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Facebook 让FB喜欢抓取正确的URL_Facebook_Iframe_Facebook Like_Facebook Opengraph - Fatal编程技术网

Facebook 让FB喜欢抓取正确的URL

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 + '&amp;layout=button_count&a

我在Fancybox的iFrame中使用了一个类似Facebook的按钮,在我的网站上我使用了Zenphoto。这似乎是使like按钮显示在Fancybox中的唯一方法

守则:

    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>';
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>