Is it possible to create a Twitter card from a data URI?


#1

I am trying to create a Twitter Card using data-URIs. I started with the sample code for summary cards and urlencoded a page:

data:text/html,%3Chtml%3E%3Chead%3E%3Cmeta%20property%3D%22twitter%3Acard%22%20content%3D%22summary%22%20%2F%3E%3Cmeta%20property%3D%22twitter%3Asite%22%20content%3D%22%40flickr%22%20%2F%3E%3Cmeta%20property%3D%22twitter%3Atitle%22%20content%3D%22Small%20Island%20Developing%20States%20Photo%20Submission%22%20%2F%3E%3Cmeta%20property%3D%22twitter%3Adescription%22%20content%3D%22View%20the%20album%20on%20Flickr.%22%20%2F%3E%3Cmeta%20property%3D%22twitter%3Aimage%22%20content%3D%22https%3A%2F%2Ffarm6.staticflickr.com%2F5510%2F14338202952_93595258ff_z.jpg%22%20%2F%3E%3Cmeta%20property%3D%22twitter%3Aurl%22%20content%3D%22https%3A%2F%2Fwww.flickr.com%2Fphotos%2Funicphoto%2Fsets%2F72157645001703785%2F%22%20%2F%3E%3C%2Fhead%3E%3Cbody%3E%3Ch1%3Ehello%3C%2Fh1%3E%3C%2Fbody%3E%3C%2Fhtml%3E

However, the Card validator did not accept that, since it needed a http-url. So, I tried using a url-shortener: http://tinyurl.com/l4d56kd but this did not work either, only giving me the following error:

Fetching the page failed due to an internal error, debugId: 3529608922962-768183

Am I correct in assuming that this approach wont work? Is it a bug or a feature request? :slight_smile:

Cheers,
Emil