Twitter photo card does not display photo


#1

Hi,

I am 99% certain that this used to work when my domain got approved for twitter cards many months ago (http://alc.cx). Right now, twitter does not display the photo card for tweets that contain links such as this one: http://alc.cx/1/p/g .
Example tweet: https://twitter.com/meilleurerep/status/449579456093773824

I checked this again with the validator which indeed does not display the picture but says everything is fine, especially for the twitter:image:src meta tag. The top left bullet is red though but I have no idea what this means. Screenshot of the validator below:

https://plus.google.com/u/1/photos?pid=5996133381887606834&oid=116330784646409405411

I tried to add a .png extension to the picture tag, added a robots.txt file (there was none) but I could not see any change in the output of the validator.

Help of any kind would be most appreciated !

Mathieu


#2

I debugged this further: the twitter servers require the image server to provide an ETags HTTP header. This is not really documented anywhere so it might make sense to extend the existing card documentation.


#3

Thanks for this. We also have caching issues occasionally, so it delays a bit to show the image.

In looking at your tweet, the image now appears. Let us know if we can be of further assistance!


#4

Yes, the urls work fine since I added the ETags header.

Thanks for your kind answer !


#5

Do you have the code for the ETags? The tweets I am calling dynamically on my website are only showing the top third of the tweet (image). It’s very annoying.