Basically AddressBooker takes a POST of contacts data in JSON form, and does stuff with it, where "stuff" is currently limited to merging it into your Google Contacts. (GMail, Android, etc) This was my experiment in learning GData, AuthSub, and App Engine a bit more.
Anyway, I then wanted to get my Facebook Phonebook exported to my Google Contacts, so it'd sync to my Android phone. I didn't see an export option in Facebook (maybe I missed it?), so I wrote a little GreaseMonkey script instead to automate the whole process:
http://bradfitz.com/greasemonkey/facebook_phonebook_export.user.js
If you have Firefox and GreaseMonkey, then click the above link and it'll ask if you want to install it. Install it, then go to your Facebook Phonebook
Enjoy!
(And keep in mind I barely know browser stuff or Greasemonkey or Python or App Engine or GData, so patches welcome!... brad@danga.com, or Github)
Update 2009-05-09: Updated the JavaScript to work with Facebook's new layout.
Update 2010-06-06: Facebook's markup changed again, but I'm too lazy to go update the script. Patches welcome.
← Ctrl ← Alt
Ctrl → Alt →
Deleted comment
Deleted comment
11 years ago
Guess this won't get the email address?
December 1 2008, 08:55:49 UTC 11 years ago
December 1 2008, 11:33:29 UTC 11 years ago
Didn't Plaxo get a few users in trouble when they launched their Facebook sync tool as well?
December 1 2008, 16:51:09 UTC 11 years ago
I don't know.
There was a very useful Mac Address Book sync tool but it was shutdown because exporting contact details from Facebook is, apparently, against their TOS :(
Well, this isn't a Facebook App, so not sure what would be shut down.
Didn't Plaxo get a few users in trouble when they launched their Facebook sync tool as well?
That tool slammed the hell out of Facebok's servers, so people using it (Scoble) had their accounts suspended for rate limit abuses. The Greasemonkey script I wrote does just a couple HTTP requests (one per 50 friends w/ phone numbers), spaced ~1 second apart... very human-speed.
11 years ago
December 1 2008, 18:38:57 UTC 11 years ago
Hmm, does it do any sort of search-and-merge with the Google contacts, or does it always create new ones?
December 1 2008, 18:43:07 UTC 11 years ago
11 years ago
11 years ago
Great idea!
11 years ago
Too many contacts
Anonymous
11 years ago
ditto
Anonymous
11 years ago
11 years ago
December 1 2008, 18:43:24 UTC 11 years ago
December 1 2008, 19:23:58 UTC 11 years ago
Keep up the good work on K-9 Mail, btw. I use it and love it.
Thanks so much
December 2 2008, 08:44:33 UTC 11 years ago
As a side note, this is what caused me to finally break down and install GreaseMonkey. Congratulations, I guess.
I really hope that someday I can buy you a beer.
December 3 2008, 00:07:17 UTC 11 years ago
Thanks for the tool, worked great!
Thanks dude
December 12 2008, 16:01:45 UTC 11 years ago
December 13 2008, 03:14:02 UTC 11 years ago
December 13 2008, 19:53:48 UTC 11 years ago
Anonymous
11 years ago
ToS violation
December 13 2008, 19:53:14 UTC 11 years ago
Specifically, the following clauses:
"All content on the Site and available through the Service, including designs, text, graphics, pictures, video, information, applications, software, music, sound and other files, and their selection and arrangement (the "Site Content"), are the proprietary property of the Company, its users or its licensors with all rights reserved. No Site Content may be modified, copied, distributed, framed, reproduced, republished, downloaded, scraped, displayed, posted, transmitted, or sold in any form or by any means, in whole or in part, without the Company's prior written permission, except that the foregoing does not apply to your own User Content (as defined below) that you legally post on the Site."
And
"In addition, you agree not to use the Service or the Site to: ... use automated scripts to collect information from or otherwise interact with the Service or the Site"
On top of the legalese, the spirit of the Facebook Terms of Use is that people should have control over their privacy through FB, no matter where that information resides. Facebook would say, "What if someone changes their privacy preferences so that you're no longer allowed access to their phone number? Or what if they change numbers? Your data will at best be out of date and at worst violate their privacy."
Since Facebook offers no controlled mechanism for accessing phone numbers I think it's a safe bet that they don't want users exporting their friends phone numbers, no matter what.
YMMV, I guess, since Facebook is notoriously inconsistent in enforcing their terms of service.
Re: ToS violation
December 13 2008, 19:56:01 UTC 11 years ago
Here's a permalink
Anonymous
December 13 2008, 20:16:08 UTC 11 years ago
Re: Here's a permalink
December 13 2008, 20:25:03 UTC 11 years ago
Re: Here's a permalink
10 years ago
Done before.
Anonymous
December 14 2008, 15:50:29 UTC 11 years ago
Facebook will most certainly send you takedown notice as well.
Re: Done before.
Anonymous
December 15 2008, 14:41:05 UTC 11 years ago
It does look like you are out of your AppEngine URL fetching quota though:
raise self.exception
OverQuotaError: The API call urlfetch.Fetch() required more quota than is available.
December 27 2008, 01:45:55 UTC 11 years ago
Now to merge with phonebook, WAB, Thunderbird and Google Contacts and remove duplicates - best solution I've found so far is Zyb (http://zyb.com) but it's still not ideal...
Problem with exporting facebook friends
Anonymous
January 5 2009, 16:56:53 UTC 11 years ago
I went into User Script Commands when i was on this page http://www.facebook.com/mobile/?phonebook but after Facebook said :
(look at the image)
http://nsa03.casimages.com/img/2009/01/05/090105060020573077.png
Re: Problem with exporting facebook friends
January 5 2009, 17:17:42 UTC 11 years ago
Best. App. Ever.
January 7 2009, 22:28:33 UTC 10 years ago
Great app!
Anonymous
January 28 2009, 05:16:27 UTC 10 years ago
← Ctrl ← Alt
Ctrl → Alt →
Comments for this post were locked by the author