Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/30.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
Html 脸谱网的分享没有';不显示我的描述或缩略图_Html_Facebook Sharer - Fatal编程技术网

Html 脸谱网的分享没有';不显示我的描述或缩略图

Html 脸谱网的分享没有';不显示我的描述或缩略图,html,facebook-sharer,Html,Facebook Sharer,我已经遵循了我发现的每一条建议,试图让它发挥作用,但所有这些都没有效果。有人能告诉我为什么我的描述/缩略图没有显示出来吗?谢谢以下是我的代码和网站链接: 元标记: <meta name="title" content="La Vita è Bella, because life is beautiful" /> <meta name="description" content="Drawing on Italy’s most famous export – great-tast

我已经遵循了我发现的每一条建议,试图让它发挥作用,但所有这些都没有效果。有人能告诉我为什么我的描述/缩略图没有显示出来吗?谢谢以下是我的代码和网站链接:

元标记:

<meta name="title" content="La Vita è Bella, because life is beautiful" />
<meta name="description" content="Drawing on Italy’s most famous export – great-tasting, healthy, colourful food – La Vita é Bella brings families together to experience mealtimes the Italian way." />

<link rel="image_src" href="http://www.lavitaebella.co.uk/images/imageforfacebook.jpg" />

实际链接:

<a href="http://www.facebook.com/share.php?u=http://www.lavitaebella.co.uk" target="_blank"><img src='../images/share/s-fb.png' /></a>

提前感谢您的帮助。

--2次编辑--

请注意,这个答案不再有效,已经过时了。请试一试

--原始答案--

整理好了。不得不使用一个充满疯狂的url:

<a href="http://www.facebook.com/sharer.php?s= 100&amp;p[title]=La Vita È Bella&amp;p[url]=http://www.lavitaebella.co.uk/teachers/resources.html&amp;p[images][0]=http://www.lavitaebella.co.uk/images/imageforfacebook.gif&amp;p[summary]=Drawing on Italy’s most famous export – great-tasting, healthy, colourful food – La Vita é Bella brings families together to experience mealtimes the Italian way"><img src='../images/share/s-fb.png' /></a>

--编辑--

作为一些额外信息,我不记得我最初在哪里找到这些信息,但以下是s=100部分的含义:

基本的方法是提供一个链接,该链接是基本共享页面(通常在弹出窗口中显示)

但我试着换了号码,结果还是换到了同一个地方

至于
&;p
,这只是&p的html代码,我认为这是Facebook为获取信息而剖析的数组。

对于那些(像我一样)其他答案不起作用的人:

部分中,添加

<meta property="og:url" content="https://www.mathnuggets.com/" />
<meta property="og:image" content="https://www.mathnuggets.com/images/fb-logo.jpg" />
<meta property="og:title" content="Math website for your gifted student" />
<meta property="og:description" content="Challenging word problems for gifted elementary students" />` 

` 
然后转到并在那里输入您的URL以刷新您页面的FB缓存


^^^刷新缓存很重要

史诗!我一直在疯狂地寻找这个答案。谢谢伙计,你应该得到更多的选票。这帮了我很大的忙。很好的帖子,非常感谢!知道如何在用户共享后添加重定向uri和/或关闭共享弹出窗口吗?(我尝试添加[redirect_uri]到字符串的末尾,但没有。谢谢!我想你应该在文章的顶部添加免责声明,声明它不再有效。我使用了以下标记:标题和说明已成功更改,但图像仍然没有出现。@Gaurav123,72.5.167.17:8003是否可以从internet访问,还是仅适用于你的本地环境?你可以访问吗它通过FB Linter?Linter给你什么错误?是的,它可以访问(从互联网)。我没有得到任何错误,但图像没有被替换。图像大小是526px*361px,但它显示的图像大小应该至少是200px*200px