notes.husk.org. scribblings by Paul Mison.

2010-12-24

Flickr API Corners: ID to URL

text 09:57:07

If you have the URL of a Flickr photo, and want the URL of the page containing that photo, here are two ways, one on the website, and one using the API.

(Why would you want to do this? Well, people seem to be good at breaking the terms of service and not linking back to Flickr with a photo. Perhaps it’s been through ffffound or tumblr, or it’s been used on a blog. If that happens, but you want to find out who posted it, carry on.)

Firstly, using the website. Say your URL is http://farm5.static.flickr.com/4031/4497550401_11d8d708a7_z.jpg. Select up to the number behind the final slash and replace the text with http://flickr.com/photo.gne?id=. You’ll be redirected to a page containing the photo. (It’s possible that the photo will be private, but you’ll still be told who the uploader was.) Note you don’t need to trim things from the end of the URL; Flickr’s smart enough to do that for you.

Secondly, through the API. Open up the API explorer and look at flickr.photos.getInfo. Again, look after the last slash, and copy the number there (in this case, 4497550401) into the “ID” field. Once you call the method, you’ll see a variety of information about the photo, including (at the bottom of the XML) a URL.

It’s possible, if you don’t sign the call, or if the photo’s private, that you’ll need the second (hex) string, in this case 11d8d708a7, in the “secret” field. Providing this grants a little more access to a photo than the ID alone, but you may still find that the photo is private.

There you have it: two ways to get from a Flickr photo ID to the URL of the page containing it.

2009-03-24

How to: Set Up A Group Tumblr

text 13:24:00

Tumblr’s supported group blogging for about a year now, but it’s not obvious what to do to get started. There’s a small mention in the docs, but it’s not exactly a step-by-step guide. So, here’s how to get going. (Note these instructions work with the dashboard at the time of writing, but Tumblr do seem fond of redesigns.)

Firstly, log in to a Tumblr account (creating it if necessary). In the dashboard, look at the list of blogs on the right hand side, and click “+ Create a new tumblelog”. Set its title and URL, then click “Create tumblelog”.

Select your new tumblelog in that list (by clicking on its title) and then click on “Members”. You can now put in an email address for someone you want to invite, and invite them. If they already have a Tumblr account under a different email address, don’t worry: as long as they’re logged in when they click the invite link it will be associated with their current account.

From then on, it’s just as if you’re using Tumblr on your own, except everyone can add their own posts. As with standalone tumblelogs, you can use feeds (configured from Customise > Feeds) to import RSS feeds, delicious links, or something like that; then people don’t even need a Tumblr account to contribute.

Now for the gotchas:

  • When you set up a blog, it’s either private or public. That setting is fixed in stone, as it were; if you need to change it later, you’re screwed. Sorry.
  • If you create a blog you don’t want any more, to delete it, you haveto go to the Members page and “Leave this tumblog”. When the last person leaves, Tumblr switch out the lights (delete the blog). This is incredibly unobvious, but it is at least covered it in the help docs.
  • The first tumblelog you set up, when you join Tumblr, is special: it doesn’t have the “members” section in the dashboard, and so you can’t leave to delete it, or invite others to it. If you’ve set up a tumblelog already and want to add people to it, your best bet is to shuffle the domains (which Tumblr lets you do at will) and recreate any important posts (you can lie about publish times).

I suppose, looking back at that, it didn’t really need much help beyond Tumblr’s single-user experience, but still, I hope this is useful to someone.

what

more