After far too long, I finally launched support for importing multi-photos from Instagram via OwnYourGram!
I had to make a couple tough calls, which I'm not entirely happy about, but I think it's an acceptable compromise for now. The main limitation of the way it currently works is that Instagram posts that mix photos and videos in the same post will import the videos as just their poster frame. Additionally, you can tag people in the individual images on Instagram, but when that's converted to a Micropub request and sent to your site, the person tags are combined into one list associated with the main post.
The reason for doing it this way is there were already several websites and Micropub implementations that support the "multi-photo" concept, but very few that support "collections." The difference is a multi-photo is a single h-entry that has multiple photo URLs, whereas a collection is an h-entry that contains multiple h-entrys inside of it. The collection concept allows a much richer representation of things, since you can have a collection containing photos, videos, or anything really, and each h-entry within the collection can have its own tags, person-tags, etc. There are some more notes on the advantages and limitations of each on the IndieWeb wiki.
But right now, there are very few implementations of collections at all, and as far as I know, nobody's Micropub endpoint supports creating collections anyway. In contrast, there are several examples of multi-photos along with support in Micropub endpoints, including recent support for it in micro.blog. So that's a compelling argument for making OwnYourGram support the simple case first, and eventually I'll see about adding support for full collections later.
Since not everyone's site supports multi-photos, I decided that for all existing OwnYourGram users, I would maintain the existing behavior where it only posts the first photo to your site. This way I avoid surprising people with a new kind of Micropub request. If you're an existing user and want to accept multi-photos, then you just need to be prepared for the "photo" property to be an array, and you can enable multi-photo support in the settings. New users will have this enabled by default.
I talked about this upcoming change on episode 1 of my new microcast "Percolator," so please subscribe if you're interested in following along with other developments I'm thinking about!
Looking forward to seeing some multi-photos on all your websites!
Today I added support for XRay to extract data from Instagram URLs!
This means anything that uses XRay will now return structured data when given an Instagram URL, just like how it parses h-entry and other Microformats.
Unfortunately, Instagram does not provide timezone data for the published date, only a Unix timestamp. So if the photo is tagged at a location, then XRay will look up the appropriate timezone for that location and adjust the timezone of the published date accordingly!
Here's what the parsed JSON looks like for this photo. Note that the timezone is set to East Coast because this photo was taken at MIT.
"name":"Massachusetts Institute of Technology (MIT)",
In addition to my website using this for reposts and comments, when I paste that URL into IRC, Loqi uses XRay to expand it and provide a little text preview.
Flickstagram, a service which will export your Instagram photos to Flickr, has had far more users in non-English speaking countries, and has also appeared in more non-English blogs than English ones.
None of my other small projects have gotten this much traction in such a variety languages, and I was curious why.
I then looked at the Flickstagram website again, and realized an unintentional side effect of the design:
The website is still usable even if you can't read any of the buttons.
At a glance, you can see:
There is no question as to what you should do first.
Even if you can't understand English, you can still use the site! This is my guess as to why this site has gotten so much uptake in other languages.
So, when possible, design your websites so they can be used without reading any of the text!
Just for fun, I generated a map showing the countries of all the photos that have been exported from Instagarm to Flickr so far.
While the US definitely has the most photos, I am still surprised by the number of photos from other parts of the world!