Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why doesn't twitter:image work properly when posting link in Twitter?

This is the current twitter card data I have inside <head>

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@tradukka">
<meta name="twitter:title" content="Currency exchange: United States Dollar (USD) - Argentine Peso (ARS)">
<meta name="twitter:description" content="Currencies exchange updated in real time: United States Dollar (USD) - Argentine Peso (ARS) / 1 USD...">
<meta name="twitter:image" content="http://tradukka.com/meta/359ac65be829e896c12a3126fa9c71d0.jpg">
<meta name="twitter:image:width" content="750">
<meta name="twitter:image:height" content="370">
<meta name="twitter:url" content="http://tradukka.com/currency/usd/ars">

If I send a tweet with that link, all the information is being shown in the tweet, except the image:

enter image description here

I also tried using the card validator:

enter image description here

...it fetches everything except the image.

Also, I already tried using twitter:image:src as well. The domain is whitelisted. Any ideas on why the image is not being displayed inside the tweet?

like image 791
Andres SK Avatar asked Oct 30 '22 07:10

Andres SK


1 Answers

The issue was caused by robots.txt. Make sure that the twitter bot is allowed to crawl the directory containing the twitter images (in this case, /meta).

like image 156
Andres SK Avatar answered Nov 29 '22 04:11

Andres SK