technovelty

weblog of Ian Wienand

RSS  |  technovelty home  |  page of ian  |  ian@wienand.org

Facebook, API's, photos and IPTC data

As a photo management application, Facebook sucks. But it is something that people actually look at (as opposed to Flickr, which is great, but getting people to log-in or follow special guest pass links is a PITA).

I like to keep all my raw photos locally, using IPTC for comments (which Flickr reads -- I put them in using some custom scripts and the Python bindings of libiptcdata) and geo-tagged in the EXIF data (using my google maps point locator). I figure this way if Flickr goes bust/gets bought by Microsoft all I need to do is re-upload somewhere else.

I was waiting for Flickr to integrate with Facebook in some good way, but I then came across the very useful pyfacebook bindings, which, although being a little light on documentation, is a great way to easily throw my photos into Facebook (it's pending the NEW queue in Debian, see #511279).

My fbupload.py script might be a useful starting point if you want to do the same thing. It batches up photos into lots of 60 (the maximum photos in an album) and automatically creates the albums and uploads the photos, reading the IPTC data for comments. The only problem is that you'll have to sign up for a developer key and start a new application to get a secret key to talk to the API (if you're still reading this, I'm sure you can figure it out!).

posted at: Fri, 09 Jan 2009 23:31 | in /code/web | permalink | add comment (6 others)

Posted by Greg at Sun Jan 11 05:18:31 2009

Do you know if there is a way to get your photos back out of FB using that developer API key?  Or even cooler, photos from your friends?

I ask because even though I don't delete photos and backup regularly, not every is as protective of their data.  If the proverbial "your sister's" computer crashes and she loses her photos why can't she get a mass dump from FB?

Posted by Mark Purcell at Mon Jan 12 12:20:35 2009

kipi-plugins 0.2.0-beta6 now provides a facebook plugin.

digikam is also good with the IPTC and EXIF management, so maybe worth checking out.

the beta versions are still awaiting KDE42 release, so they are usable, must a little messy to install.

Posted by johnbarnald at Mon Jan 12 15:18:17 2009

There are many people searches available now a days. We need to choose the appropriate people search service for finding the details of the people. Some service providers charge for the services provided while others provide information for free.

Posted by ClintJCL at Tue Mar 10 03:20:53 2009

c:\> fbupload.py

Traceback (most recent call last):
  File "C:\pics\New Pictures\2009_02_13\fbupload.py", line 5, in <module>
  import facebook
ImportError: No module named facebook


How do I make this not happen? The .py script you provided seems incomplete, or I am not following instructions correctly. It seems to depend on a library I don't have, and I spent 10 minutes on google unable to find it. Thanks!

Posted by ClintJCL at Tue Mar 10 05:27:02 2009

Feel free to delete my last comment. Thanks very much for your email help. I had no clue how to install modules in python or how to use SVN, but now I do :) Thanks!!

Posted by Janne H. at Sat Jun 20 01:50:37 2009

Eh! So what's your solution?

I have the same problem now, guess I have to google for 10 minutes now...

Add a comment
*Name
*Email (not shown)
Website
*Comment:
Anti-spam:
* denotes required field

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.