在其他平台上分享 URL 时图片未显示
Image not showing while sharing URL on other platform
<meta property="og:image" content="https://vickygupta16.github.io/Images/VickyGupta.jpg">
<meta property="og:image:type" content="image/jpg" />
<meta property="og:image:width" content="240" />
<meta property="og:image:height" content="240" />
<meta property="og:image:alt" content="Display Picture" />
我在社交媒体平台上分享 URL 时无法查看应显示的图像。
我尝试了不同的宽度和高度并更新了我的 github 存储库,但在分享时仍然没有得到图像 URL。
我知道我错过了一个简单的步骤,解决方案可以很简单,但我无法解决。
我觉得一切都很好。问题是并非所有社交媒体平台都配置为使用 OGP(即并非所有平台都能理解这些标签)。所以可能有几件事:
- 您尝试使用的社交媒体不支持任何社交元标签
- 您尝试使用的社交媒体有自己的标签(例如 Twitter)
- 社交媒体网络已缓存内容,在您上次修改后尚未更新
对于数字 1,没有解决方案。对于第 2 项,尝试查找平台使用的标签。对于数字 3,请清除浏览器上的缓存和 cookie,然后重试。
查看 following Facebook recommendations for images:
For high-resolution devices, use images of at least 1,200 x 630
pixels. To publish Pages with links with large images, use images with
a size of at least 600 x 315 pixels.
We have changed the publication of the Page with links: now the aspect
ratio of the images is the same for News Feed on PC and on mobile
devices. Try to ensure a 1.91: 1 aspect ratio so that the image in the
News Feed is not cropped.
<meta property="og:image" content="https://vickygupta16.github.io/Images/VickyGupta.jpg">
<meta property="og:image:type" content="image/jpg" />
<meta property="og:image:width" content="240" />
<meta property="og:image:height" content="240" />
<meta property="og:image:alt" content="Display Picture" />
我在社交媒体平台上分享 URL 时无法查看应显示的图像。
我尝试了不同的宽度和高度并更新了我的 github 存储库,但在分享时仍然没有得到图像 URL。
我知道我错过了一个简单的步骤,解决方案可以很简单,但我无法解决。
我觉得一切都很好。问题是并非所有社交媒体平台都配置为使用 OGP(即并非所有平台都能理解这些标签)。所以可能有几件事:
- 您尝试使用的社交媒体不支持任何社交元标签
- 您尝试使用的社交媒体有自己的标签(例如 Twitter)
- 社交媒体网络已缓存内容,在您上次修改后尚未更新
对于数字 1,没有解决方案。对于第 2 项,尝试查找平台使用的标签。对于数字 3,请清除浏览器上的缓存和 cookie,然后重试。
查看 following Facebook recommendations for images:
For high-resolution devices, use images of at least 1,200 x 630 pixels. To publish Pages with links with large images, use images with a size of at least 600 x 315 pixels.
We have changed the publication of the Page with links: now the aspect ratio of the images is the same for News Feed on PC and on mobile devices. Try to ensure a 1.91: 1 aspect ratio so that the image in the News Feed is not cropped.