linkedin - LinkedIn 无法识别 og:image
问题描述
我真的很难让 LinkedIn 识别 og:image。我的 og 标签如下所示:
<meta property="og:type" content="website" />
<meta property="og:title" content="My title here" />
<meta property="og:url" content="https://www.example.com/some-page" />
<meta property="og:description" content="Description here" />
<meta property="og:image" content="https://www.example.com/og-image.png" />
到目前为止,我已经尝试过:
- 检查 og:url 是否匹配当前页面
- 检查图像是否存在
- 添加
prefixprefix="og: http://ogp.me/ns#"
到我的 HTML 标签 - 将该前缀更改为
prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# website: http://ogp.me/ns/website#"
- 检查网站的 SSL 设置(根据在 LinkedIn 上与 og 共享)
- 确保我的图像至少为 1200x672px
- 确保我的图像小于 5MB
我不确定还有什么可以尝试的。有任何想法吗?
解决方案
啊哈——刚刚尝试将其设为 JPG 而不是 PNG,LinkedIn 现在看到了。这有点令人震惊,但希望能对其他人有所帮助!
推荐阅读
- python - Python 等效于 Javascript Object.values() 方法
- python - 如何获取 Sagemaker 实例 CPU 利用率
- node.js - NodeJS & RxJS:将 observables 转换为 nodeJs 流
- regex - bash 中的正则表达式量词——简单与扩展匹配 {n} 次
- excel - Excel中的范围加法和乘法
- python - 尝试对 .csv 数据集进行 linregress 时,Scipy.stats 错误“要解压的值太多”
- azure - 使用 Terraform 配置 Azure 媒体服务:特别是使用 Widervine DRM 的内容密钥策略
- visual-c++ - 使用 git bash 在命令行上设置 cmake 的 msvc 编译器标志
- c# - 如何使用来自 http 请求的数据填充 xamarin 集合视图?
- android - 对处理 git 合并冲突的一群人有什么解决方案吗