1

我正在尝试将Twitter 卡片添加到我的网站,以便引用我的博客文章的推文可以扩展并显示额外信息。

当我包含一个twitter:image标签时,Twitter Card 会失败,但是当我删除它时,它工作得很好。我究竟做错了什么?

<meta property="twitter:url" content="http://liberalgeek.com/content/why-do-atheists-celebrate-christmas" />
<meta property="twitter:card" content="summary" />
<meta property="twitter:description" content="I can&#039;t speak for all atheists, I can only speak for myself, so please leave a comment below and explain why you celebrate Christmas! When I hear someone ask, &quot;Why do atheists celebrate Christmas?&quot; my first thought often is: Better Question: Why do Christians celebrate Christmas?" />
<meta property="twitter:creator" content="@kennywyland" />
<meta property="twitter:title" content="Why do Atheists celebrate Christmas?" />

<!-- the following line causes the problem -->
<meta property="twitter:image" content="http://liberalgeek.com/sites/default/files/styles/large/public/Christmas%20Tree.jpg" />

该图像是公开可见的,它足够大而不会太大......有什么问题?

4

2 回答 2

0

更改 robots.txt 以允许机器人访问您的网站。

于 2013-09-17T11:28:11.003 回答
0

尝试这个

<meta name="twitter:image:src" content="http://liberalgeek.com/sites/default/files/styles/large/public/Christmas%20Tree.jpg" />

https://dev.twitter.com/docs/cards/validation/validator

于 2013-05-30T06:17:29.983 回答