代码之家  ›  专栏  ›  技术社区  ›  Drew Rich

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

  •  37
  • Drew Rich  · 技术社区  · 16 年前

    我已经遵循了我找到的每一条建议,试图让这个工作,但所有的都没有结果。有人能告诉我为什么我的描述/缩略图没有出现吗?谢谢。以下是我的代码和网站链接:

    元标记:

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

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

    提前谢谢你的帮助。

    2 回复  |  直到 11 年前
        1
  •  30
  •   zaphod    11 年前

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

    <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" />` 
    

    那就去 FB Linter 然后在那里输入你的URL来刷新FB对你页面的缓存。

    ^^^刷新缓存很重要。

        2
  •  92
  •   Community Mohan Dere    9 年前

    --第二次编辑--

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

    --原始答案--

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

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

    http://www.facebook.com/sharer.php?s=100

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

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