Twitter Cards image stopped working

image
cards

#1

Hi! I started to use Twitter Cards a couple of weeks ago and everything was fine. But suddenly the image stopped working.

Mi website is: www.hambrientos.cl
Twitter: www.twitter.com/hambrientos

The validator give a “Card loaded successfully” message, but the image is not loading.

¿Anyone knows what the problem is?


#2

Have the same problem. Anyone can help?


#3

Please read and carefully check through the FAQ on cards troubleshooting. If there’s something that you’re convinced is missing or not answered there, please provide more details. Thank you.


#4

Oh crap. I still have questions:

if you execute curl -A Twitterbot at the command prompt, does your page still show the twitter:card tags in the section of the page?

How i execute that? Sorry, i don’t what that is. I tried in Terminal and gave me a “-bash: syntax error near unexpected token `newline’” message.

is your site accessible by the Twitterbot/1.0 user-agent? Are all the files (including image files) accessible to Twitterbot? you should check http://your-site-url/robots.txt and ensure that it allows access to our crawler.

How can i know that? This is my Robots.txt file:

User-agent: ***
Allow: /
Disallow: /wp-admin/

Disallow: /wp-content/

Disallow: /wp-includes/*
Disallow: /wp-content/cache
Disallow: /wp-content/themes/*
Disallow: /trackback
Disallow: /comments
*Disallow: /trackback
*Disallow: /comments
Disallow: /*?s=


#5

I’ve just checked http://www.hambrientos.cl/ and there is no twitter:card meta tag in the page.

I also tried curl -A Twitterbot http://www.hambrientos.cl/ and also see no twitter:card markup.

I don’t know what image you are trying to point at, but you have <meta property="og:image" content="http://www.hambrientos.cl/wp-content/themes/hambrientos/images/hmb.gif"/> and the robots.txt file is explicitly Disallowing all User-Agents from accessing /wp-content/ which is where that image is located.

Since you’re using Wordpress, you might want to look at our official Wordpress plugin that can automatically add cards tags (but it can’t fix your robots.txt file).

… ah. I see, you don’t have markup on the top-level site, but you do on the individual pages. Again, I believe the issue here is that you have images under /wp-content/ but the robots.txt file explicitly disallows Twitterbot from accessing this. There’s more in the cards troubleshooting documentation. Note that robots.txt is a standard Google format and our crawler tries hard to conform to the spec.


#6

Wow! Thanks for all that help Andy!

So, i modified my robots.txt:

User-agent: *
Allow: /wp-content/*
Disallow: /wp-admin/*
Disallow: /wp-includes/*
Disallow: /wp-content/cache
Disallow: /wp-content/themes/*
Disallow: /trackback
Disallow: /comments
Disallow: */trackback
Disallow: /comments
Disallow: /
?s=

You think now is going to work?


#7

Yes, it should work, but the 7 day crawler cache may mean that previously-indexed pages will not show an image immediately. That’s in the troubleshooting document I pointed to previously, too. In general, your robots.txt file looks better in this case.


#8

AMAZING. I don’t know WHY and HOW, but now is working, LOL.
The weird thing is that two weeks ago everything was working fine.

Thanks a lot Andy!


#9

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.