共享网址链接不会在Facebook上显示缩略图

Moj*_*iiz 18 facebook image sharing opengraph

我有一些示例网址,提供Facebook共享.但是网址页面中的图片没有显示在Facebook评论框中.我已经插入了这样的Meta标签

<meta property="fb:app_id" content="xxxx"/>
<meta property="og:site_name" content="xxxx"/>
<meta property="og:title" content="xxxx" />
<meta property="og:description" content="xxx" />
<meta property="og:type" content="xxx:photo">
<meta property="og:url" content="http://www.example.com/content/xxx"/>
<meta property="og:image" content="http://www.example.com/images/xxx.png"/>
Run Code Online (Sandbox Code Playgroud)

*我的图像是1000*1000像素(宽*高).

有什么想法解决?

Pas*_*sin 52

您的元标记应如下所示:

<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
Run Code Online (Sandbox Code Playgroud)

它必须放在您想要分享的页面上(这在您的问题中不明确).

如果您在图像(或元标记)存在之前共享了页面,那么Facebook可能在其"内存"中没有图像的页面.在这种情况下,只需在调试工具http://developers.facebook.com/tools/debug中输入页面的URL即可.之后,下次共享页面时应该存在图像.

  • 谢谢您的回答.我已经解决了这个问题.我的图片太大了.当我将图像大小调整为600*600时,缩略图会在Facebook上快速显示. (2认同)

小智 11

问题在于facebook缓存,解决方案是通过转到链接来刷新facebook缓存. https://developers.facebook.com/tools/debug/og/object/

然后按"获取新的废料信息"按钮.

希望能帮助到你