Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter card not working

Tags:

meta-tags

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

like image 913
saurssaurav Avatar asked Jan 09 '17 10:01

saurssaurav


People also ask

Why is my twitter card not showing pictures?

The most likely cause of broken Twitter images is WordPress caching plugins. Even though, you have set the Twitter card image in All in One SEO, your cache plugin may still be showing an outdated version. To fix this, you need to clear your WordPress cache and then test again using the Twitter Card Validator tool.

Do Twitter Cards still exist?

From a manual creation perspective, Twitter Cards have always been supported in the Twitter Ad platform and allow you to design a custom creative to add to your tweet that when clicked will drive people to your website or app.


2 Answers

Use name instead of property in you meta tags Like :

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="....">
<meta name="twitter:title" content=".....">
<meta name="twitter:description" content="test description">
<meta name="twitter:image" content="....">
like image 183
Akshay Avatar answered Jan 04 '23 12:01

Akshay


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.

like image 30
Karan Shah Avatar answered Jan 04 '23 13:01

Karan Shah