Twitter卡不起作用 [英] Twitter card not working
问题描述
我在网站上的Twitter的元标记:
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:site" content="....">
<meta property="twitter:title" content=".....">
<meta property="twitter:description" content="test description">
<meta property="twitter:image" content="....">
我什至尝试使用 twitter:image:url ,还允许在 robot.txt 中使用twitter bot,但到目前为止没有运气
我可以知道您在哪里测试了twitter卡是否正常工作吗? 您是否使用 https://cards-dev.twitter.com/validator 进行了检查?>
此外,有时元标记的位置确实很重要,请将其放置在头部的开头,但要放在og(开放图)元标记的后面.
让我知道您在卡验证器上遇到的错误(如果有).
My meta tags for twitter in site:
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:site" content="....">
<meta property="twitter:title" content=".....">
<meta property="twitter:description" content="test description">
<meta property="twitter:image" content="....">
I even tried with twitter:image:url and also allowed twitter bot in robot.txt but no luck till now
May I know where did you test if the twitter card is working or not? Did you check with https://cards-dev.twitter.com/validator?
Also, sometimes the placement of the meta tags do matter, place them early in the head section but after the og (open graph) meta-tags.
Let me know what error you get(if any) on the card validator.
这篇关于Twitter卡不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!