Flickr Pipes / Discuss

Current Discussion

Pipe: Flickr relationships (updated @ 2010-11-11)
Latest: 4 weeks ago
Change to Pipes Flickr module
Latest: 9 months ago
Pipe: Flickr photoset (updated @ 2008-04-27)
Latest: 11 months ago
md5 hash calculators?
Latest: 13 months ago
Pipes : Your flickr contact faves
Latest: 17 months ago
Pipe outputting an RSS feed that posts two images
Latest: 18 months ago
Pipe: Flickr user photostream, filtered by image orientation
Latest: 18 months ago
Image Orientation - Lanscape or Portrait
Latest: 18 months ago
Pipe to know which of your contacts are in a group you admin
Latest: 22 months ago
Build a valid RSS image feed from a Flickr Search query
Latest: 22 months ago
Thanks for these Pipes
Latest: 22 months ago
Merge Items - Identified by an ID
Latest: 23 months ago
More...

Search this group's discussions

Pipe: Flickr relationships (updated @ 2010-11-11)

view profile

alto maltés is a group administrator alto maltés says:

Using this application, you may list your contacts with whom you have a specific (mutual) relationship. For example, you may want to see who of your friends has marked you as a friend, or rather who of your contacts does not list you as a contact, etc.

Run the application.

The first time, you will have to grant “read” permission to the application. This permission may be revoked at any time.

Y! Pipe: My Flickr relationships


Technical info

This Pipe makes authenticated calls to the Flickr API. By following the login link, a user is presented with the Flickr sign-in prompt. Just the first time, the user will be asked to grant “read” permissions to the Pipe. Once the user is signed into Flickr and grants the permission, he is redirected to the Pipe. Flickr passes a frob as a parameter to the Pipe.

The Pipe calls www.flickr.com/services/api/flickr.auth.getToken.html to convert the frob into a token, which it then uses to fetch the calling user's contact list by calling www.flickr.com/services/api/flickr.contacts.getList.html. The list is filtered so that only contacts with whom the user has a specific forward relationship are allowed to flow through.

However the response of flickr.contacts.getList does not contain information about the reverse relationship of a user with a contact. This information is obtained by making an authenticated call to www.flickr.com/services/api/flickr.people.getInfo.html for every contact, using the same authentication token generated earlier. The list is then filtered so that only contacts with whom the user has a specific reverse relationship are allowed to flow through.

The calls to flickr.auth.getToken, flickr.contacts.getList and flickr.people.getInfo must be signed. Signing a request involves adding an api_sig parameter to its URL. The computation of this parameter's value necessitates the computation of an MD5 hash. Since such a function is not provided natively by Yahoo! Pipes, the computation is delegated to a YQL script implementing this function.

This Pipe also implements a primitive form of “error handling”. If the call to flickr.auth.getToken fails (typically due to an expired frob), the user is presented with a single item that links to the login page. Following this link will generate a “fresh” frob, and re-run the Pipe.

Y! Pipe: My Flickr relationships
Originally posted at 9:46AM, 8 July 2007 PDT (permalink)
alto maltés edited this topic 19 months ago.

view photostream

RodTO  Pro User  says:

Thank you for creating this, it's an extremely useful pipe. I am endorsing it on my flickr page if it is ok!
Posted 60 months ago. (permalink)

view photostream

alto maltés is a group administrator alto maltés says:

Great!
Please link to here if possible…
Posted 60 months ago. (permalink)

view photostream

alto maltés is a group administrator alto maltés says:

The FlickrHacks discussion continues here…
Posted 60 months ago. (permalink)

view photostream

alto maltés is a group administrator alto maltés says:

Lynn Morag, I am still experimenting with this pipe, so be patient :)

For the time being open the next page by typing it in the "Page:" box and re-running the pipe.

The last "Info" item on every page will tell you e.g. "Page 3 has 30 contacts, 13 of which satisfy the filtering criteria". Sometimes you will see no contacts on the page. If you get "Page 4 has 30 contacts, 0 of which satisfy the filtering criteria", that does not mean that you have searched all the contacts, so try the next page.

You will know that you searched all the contacts when you get e.g. "Page 6 has 0 contacts…"

If you get an error at any time, click on the link to restart the pipe, and then manually enter into the page box the page number where you had arrived, and re-run.

Thanks.
Originally posted 60 months ago. (permalink)
alto maltés edited this topic 60 months ago.

view photostream

birdyboo  Pro User  says:

alto maltés Thank you so much! I tried this morning and couldn't get it to work but this afternoon after only one false start, it ran through my contact list flawlessly and found the 2 I know don't have me as a contact.

This is very much like real plumbing experiences for me. ;) But I'm looking forward to learning more about Pipes through your great examples.
Posted 59 months ago. (permalink)

view photostream

alto maltés is a group administrator alto maltés says:

birdyboo, richard_in_vegas, great! Thanks.
Posted 59 months ago. (permalink)

view photostream

thincvox  Pro User  says:

alto, this is absolutely amazing, great work!
- daniel (from the pipes team)
Posted 59 months ago. (permalink)

view photostream

alto maltés is a group administrator alto maltés says:

thincvox, thank you very much.
Actually you are doing the great work… and I am building on it :)
Posted 59 months ago. (permalink)

view photostream

Pixel Wrangler says:

Alto, this is brilliant !
I haven't a clue how it works ;-) ... but I love that it does work -- and I thank you for it,
Posted 58 months ago. (permalink)

view photostream

kkalyan  Pro User  says:

I thought its not possible for pipe to use flickr auth api.
thanks for showing the way !
Posted 58 months ago. (permalink)

view photostream

alto maltés is a group administrator alto maltés says:

Pixel Wrangler, hehe, you're welcome :)

kkalyan, everything is possible, and you're welcome too :)
Posted 58 months ago. (permalink)

view photostream

Pacdog  Pro User  says:

Alto? Your icon scares me, but this pipe rocks! Thanks dude!

=o))
Posted 56 months ago. (permalink)

view photostream

alto maltés is a group administrator alto maltés says:

Cheers.

Haha! Scares you!?
Posted 56 months ago. (permalink)

view photostream

sunsurfr  Pro User  says:

Hello Alto. This is a pipe that would be extremely handy for me. However, when I run it, I receive:

Page 1 contains 0 contacts, 0 of which satisfy all filtering criteria. Extra info passed is "Leave this blank".

I have a frob in and have changed the user variables to see if that helped. Since I am just a user rather than a pipe builder I guess I am doing something wrong. I have also revoked and re authorized the pipe in case there was something wrong with the authorization. Any ideas would be very helpful.

Thanks in advance.
Posted 51 months ago. (permalink)

view photostream

alto maltés is a group administrator alto maltés says:

sunsurfr, thanks for notifying me. It’s not working for me neither. I’ll have a look…
Posted 51 months ago. (permalink)

view photostream

alto maltés is a group administrator alto maltés says:

sunsurfr, on the way…
Posted 50 months ago. (permalink)

view photostream

alto maltés is a group administrator alto maltés says:

This Pipe now works again (and supposedly better). I’ll be updating the documentation soon…

Thanks!
Posted 50 months ago. (permalink)

view photostream

alto maltés is a group administrator alto maltés says:

I plan to add the possibility to further filter the contacts by the number of photos they have uploaded, and by their location, and by whether they have a buddy-icon or not. I think these would be useful criteria to filter on.

Any more suggestions?
Originally posted 50 months ago. (permalink)
alto maltés edited this topic 50 months ago.

view photostream

clickykbd  Pro User  says:

If they have "anything" entered in profile data? This comes up due to a FlickrIdeas request related to filtering no-photos/no-profile contacts. Usefulness TBD.
Posted 44 months ago. (permalink)

view photostream

Astrologue63  Pro User  says:

hi, i have the error :" Invalid auth token"
Posted 44 months ago. (permalink)

view photostream

RodTO  Pro User  says:

yeah, seems to have stopped working :(
Posted 43 months ago. (permalink)

view photostream

alto maltés is a group administrator alto maltés says:

I'll check it out when I get some time. Thanks!
Posted 43 months ago. (permalink)

view photostream

Astrologue63  Pro User  says:

Very thanks !
Posted 43 months ago. (permalink)

view photostream

 Pro User  says:

I am craving for this application to work.

Thanks A LOT for creating it.
It doesn't work for me either, though but it would be really appreciated if you could fix it soon : )
Posted 42 months ago. (permalink)

view photostream

Astrologue63  Pro User  says:

Error is :
Pipes encountered a problem while running this pipe: The Pipes engine request failed (408)
Posted 41 months ago. (permalink)

view photostream

**SB Photography** says:

i can't get passed this error ether... some help please
Posted 40 months ago. (permalink)

view photostream

alto maltés is a group administrator alto maltés says:

Now it works :)
Posted 40 months ago. (permalink)

view photostream

Vicki's Nature  Pro User  says:

Is this working? The actual App reads differently than in the graphic above. Unclear what variables to enter - thanks.
Posted 28 months ago. (permalink)

view photostream

RodTO  Pro User  says:

Seems to be broken again :(
Posted 20 months ago. (permalink)

view photostream

Castrowoof says:

I love this app and can't seem to use it either....
Posted 19 months ago. (permalink)

view photostream

alto maltés is a group administrator alto maltés says:

Now it works!



At the core of this app is a Y! Pipe that takes a(n unsigned) URL of a Flickr API request (whose query parameters include the API key and the auth token), the corresponding API secret, and then signs the request URL and makes an authenticated call to the Flickr API (via that signed URL).

This Pipe was calling a PHP script hosted on my server. But when my hosting subscription expired, the app automatically died. Now I replaced the PHP script with a YQL implementation (which I uploaded to another server).

That’s it.

Thanks for all the feedback!

Enjoy.
Posted 19 months ago. (permalink)

view photostream

nate2b (catching up)  Pro User  says:

Is it still working? I can't seem to get it to work.
Posted 11 months ago. (permalink)

view photostream

DHARIN says:

Yea its not working for me either....
Posted 4 months ago. (permalink)

view photostream

BlueisCoool  Pro User  says:

It has not seemed to work for me in a very long while now.
Posted 4 months ago. (permalink)

view photostream

RodTO  Pro User  says:

I miss it...
Posted 4 weeks ago. (permalink)

Would you like to comment?

Sign up for a free account, or sign in (if you're already a member).

RSS 2.0 feedSubscribe to a feed of stuff on this page...</!!> Feed – Subscribe to Flickr Pipes discussion threads