社交分享的默认网站图片 [英] Default website image for social sharing
本文介绍了社交分享的默认网站图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有什么方法可以设置在我在 Facebook 上分享我的网站时显示的默认图片?我注意到 Facebook 通常会从网站上获取第一张图片用作缩略图.
Is there any way to set a default image that appears when I share my website on Facebook? I've noticed that Facebook usually fetches the first image from the site to use as a thumbnail.
推荐答案
需要设置facebook图片元标签:
You need to set the facebook image meta tag:
<meta property="og:image" content="http://example.com/logo.jpg">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1024">
<meta property="og:image:height" content="1024">
有关详细信息,请查看文档
For more info check the docs
这篇关于社交分享的默认网站图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文