我的网站当前在HTTPS://上运行。我正在利用添加此功能来实现社交功能。
问题:我在linkedin共享上面临以下问题。
a)大多数时候,只有一半的图像
b)某些时间图像没有出现。
问题:
1)我可以将og:image:secure_url和og:image放在页面上的linkedin和Facebook。
如果是,命令应该是什么。
例子:
<meta property="og:image" content="http://example.com/ogp.jpg" />
<meta property="og:image:secure_url" content="https://secure.example.com/ogp.jpg" />
2)必须执行以下操作才能链接到和facebook才能正确显示图像。
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="400" />
<meta property="og:image:height" content="300" />
任何解决方案,但它都可以在Linkedin和facebook上使用。
最佳答案
1)是,并且基于http://ogp.me/#structured,这将告诉爬网服务“该网页需要HTTPS”。
2)这些都不是必需的,因为FB和LinkedIn都将形成正确的大小。请记住,LinkedIn explicitly has minimum requirements而FB则没有。
关于facebook-like - 我可以同时放入og :image:secure_url and og:image on page for linkedin and facebook,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12178164/