在Facebook上分享 - 缩略图第一次没有显示 [英] Share on Facebook - Thumbnail not showing for the first time

查看:145
本文介绍了在Facebook上分享 - 缩略图第一次没有显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.frcc.us%2F1197%3Fv% 3D3422%26f%3D5

您现在应该会看到它有缩略图。但是每次从我的网站发布一个新的链接(配置像上面的例子),缩略图将不会首次出现。我必须刷新,然后缩略图显示。

You should see it has thumbnail now. But every time I post a new link from my website (configured like the above example), the thumbnail won't show up for the first time. I have to refresh, and then the thumbnail shows.

我应该包含有效的og标签。当我测试我的链接 https://developers.facebook.com/tools/debug

I should include valid og tags. When I test my links on https://developers.facebook.com/tools/debug

有时它给我错误说og:image应该更大。然后我只需要重新调试,然后错误就会消失。

Sometimes it gives me error saying og:image should be bigger. Then I just have to debug it again and then the error is gone.

og:所有链接的图像是一样的。我提供了最大的图像 1500x1500

og:image for all my links is the same. I have provided largest image 1500x1500. There is no redirect when link to the image.

为什么?

推荐答案

p>原因是FB背后的画面还在刮擦您的页面并缓存图像。下一次,其实你也有形象。
如何解决?手动预缓存: https://developers.facebook.com/docs/sharing/best -practices#precaching

The reason is that FB behind the scenes is still scraping your page and caching the image. The next time, in fact, you have also the image. How to solve it? Manual pre caching: https://developers.facebook.com/docs/sharing/best-practices#precaching

或只需添加

<meta property="og:image:width" content="450"/>
<meta property="og:image:height" content="298"/>

这篇关于在Facebook上分享 - 缩略图第一次没有显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆