【发布时间】:2018-02-05 06:08:10
【问题描述】:
嗨,朋友们,我在 twitter 元标记中遇到问题。基本上,当我们在 Twitter 上共享任何链接时,我想填充图像、标题和描述。在我的网站中,我使用以下元标记..
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@nytimes">
<meta name="twitter:creator" content="@SarahMaslinNir">
<meta name="twitter:title" content="Parade of Fans for Houston’s Funeral">
<meta name="twitter:description" content="NEWARK - The guest list and parade of limousines with celebrities emerging from them seemed more suited to a red carpet event in Hollywood or New York than than a gritty stretch of Sussex Avenue near the former site of the James M. Baxter Terrace public housing project here.">
<meta name="twitter:image" content="http://graphics8.nytimes.com/images/2012/02/19/us/19whitney-span/19whitney-span-articleLarge.jpg">
请参阅下面的 twitter api 文档 https://dev.twitter.com/cards/types/summary-large-image
查看我的服务器链接。 http://34.211.115.80:3000/new/alert/765
在我的链接中,Facebook 工作完美,但对于 twitter,它没有填充图像。目前我放了一些在 API 感染中提到的示例代码不起作用。
那么任何人都可以帮助我做错了什么.. 提前致谢。
【问题讨论】:
-
可能是以下问题。 twittercommunity.com/t/… 但我没有测试过。
标签: facebook twitter meta-tags