Mos*_*afa 5 opengraph twitter-card
在Twitter上,当我在网站上发推文https://startcrowd.club时,我无法显示图像卡, 但它在Facebook上可以正常使用。
我想出示这张卡:http : //startcrowd.club/images/startcrowdimage.jpg
我尝试了https://cards-dev.twitter.com/validator,我得到了:
INFO:成功获取页面
INFO:找到9个metatag
错误:未找到卡(卡错误)
我的页面https://startcrowd.club/index.html上的相关元标记是:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta property="og:image" content="images/startcrowdimage.jpg">
Run Code Online (Sandbox Code Playgroud)
我遵循的文档是:
添加:
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://startcrowd.club/images/startcrowdimage.jpg">
Run Code Online (Sandbox Code Playgroud)
文档: https: //dev.twitter.com/cards/types/summary-large-image
小智 7
确保设置了 og:type 标签。在 Facebook 上不需要,如果找不到,Facebook 将使用网站作为 og:type。这就是它在 Facebook 上运行良好的原因。
<meta property="og:type" content="website">如果 twitter:card 属性未设置,则通过添加,twitter 将使用摘要。
所以只需添加<meta property="og:type" content="website">,我认为它会正常工作。
PS:我也有同样的问题,但是当我添加<meta property="og:type" content="website">它时它对我有用。
| 归档时间: |
|
| 查看次数: |
3859 次 |
| 最近记录: |