Facebook Share不显示我的描述或缩略图

Dre*_*rew 37 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-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" />
Run Code Online (Sandbox Code Playgroud)

实际链接:

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

http://www.lavitaebella.co.uk/

在此先感谢您的帮助.

Dre*_*rew 92

- 2编辑 -

请注意,这个答案不再适用,已经过时了.请尝试以上答案.

- 原始答案 -

得到它排序.不得不使用一个充满疯狂的网址:

<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>
Run Code Online (Sandbox Code Playgroud)

- 编辑 -

作为一些额外的信息,我不记得我最初在哪里找到这些信息,但这里是s = 100部分意味着什么:

基本方法是提供http://www.facebook.com/sharer.php?s=100的链接,这是基本共享页面(通常在弹出窗口中显示).

但我尝试改变数字,它仍然在同一个地方.

至于&amp;p它,它只是&p的html代码,我认为这是Facebook为了获取信息而分析的数组.

  • 史诗!一直在寻找像疯了一样的答案.谢谢! (2认同)
  • 我认为你应该添加免责声明,它不再适用于帖子的顶部. (2认同)

zap*_*hod 30

对于那些(对我来说)其他答案不起作用的人:

<head></head>部分中,添加

<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" />` 
Run Code Online (Sandbox Code Playgroud)

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

^^^刷新缓存很重要.