I am not sure if anyone is familiar with implementing Twitter Cards (https://dev.twitter.com/docs/cards) into a blog, but if anyone is I could use some help. It seems like it should be working on my blog, but my posts don't work in Twitter's testing tool (https://dev.twitter.com/docs/cards/preview) if I provide the url. However, if I copy and paste the twitter card meta tags in instead, they display fine. I can't figure it out for the life of me.

Here is an example URL:
http://blog.paulnshapiro.com/bingiton-google-wins/

Here is example Twitter Card info:

<!-- Twitter Cards (in beta!) -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:url" content="http://blog.paulnshapiro.com/bingiton-google-wins/" />
<meta name="twitter:title" content="#BingItOn! Data Says Google Wins The Bing Search Challenge" />
<meta name="twitter:description" content="Bing has challenged Google, claiming people prefer Bing 2 to 1 according to a blind study, but my data says otherwise. Check out my analysis!" />
<meta name="twitter:image" content="http://1.gravatar.com/avatar/5eb28ff44dd0814a7cd5808eec8d3598?size=120" />
<meta name="twitter:site" content="@fighto" />
<meta name="twitter:creator" content="@fighto" />

Any assistance would be appreicated :)

Recommended Answers

All 2 Replies

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.