Twitter card not rendering - ERROR: Invalid card name (Card error)

Twitter card not rendering - ERROR: Invalid card name (Card error)

我已将此卡数据添加到 this site:


  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="Firefly Semantics Long Lead Time Capital Intensive Low Demand Service Parts Profit Optimization Help Center">
  <meta name="keywords" content="Long, Lead, Time, Capital, Intensive, Service, Parts, Profit, Optimization, aerospace, heavy, industries">
  <meta name="author" content="Ole Ersoy">  

  <meta name="description" content="Page description. No longer than 155 characters." />

  <!-- Twitter Card data -->
  <meta name="twitter:card" content="Firefly Semantics Long Lead Time Capital Intensive Low Demand Service Parts Profit Optimization Help Center">
  <meta name="twitter:site" content="https://help-service-parts.fireflysemantics.com/">
  <meta name="twitter:title" content="Firefly Semantics Service Parts Help">
  <meta name="twitter:description" content="Firefly Semantics Long Lead Time Capital Intensive Low Demand Service Parts Profit Optimization Help Center">
  <meta name="twitter:creator" content="@fireflysmtics">
  <-- Twitter Summary card images must be at least 120x120px -->
  <meta name="twitter:image" content="https://fireflysemantics.github.io/logo/service-parts-help-center/fs-logo-help-center.png">

然而,当我将 link 粘贴到我的 Twitter 帐户时,卡片不会呈现。

https://twitter.com/fireflysmtics

它在介质上渲染。有什么想法吗?

下面是一个示例中型文章,最后是卡片渲染:

https://medium.com/@ole.ersoy/capital-intensive-concept-c565b5b5eade

它在 Facebook 上也呈现良好。

我找到了这个资源:

https://cards-dev.twitter.com/validator

当我把 URL 放进去时,它只是说:

ERROR: Invalid card name (Card error)

确定 - 该卡是一种类型。所以它的字面意思应该是 'summary'。我看到了总结并想到了....好的,我们需要做一个总结...

卡片不应包含空格,下划线 (_) 可以。

Twitter 卡片中不能有任何随机数据。现在允许指定值。

“summary”, “summary_large_image”, “app”, or “player”.

使用<meta name="twitter:card" content="summary_large_image"/> 如果要添加自定义描述标签,请将以下标签放在上面的 twitter:card 标签

之后
<meta property="og:description" content="insert description here"/>