Update: Facebook released an update to their iPhone App that makes it quick and easy to sync your Facebook Friends with your iPhone Address Book Contacts. If you have an iPhone, this is a great way to import your Facebook Information to Address Book on your Mac.
When Apple announced the iPhone the importance of the Address Book application increased significantly. Address Book was now not only the tool to keep the various contact details about your friends, family, and work colleagues but was now the way you managed your phonebook on your iPhone.
Over the past few years Facebook.com has emerged as a great way to keep in touch with your friends and family. One of the optional fields in Facebook that your friends can make available to you is their phone number. Now, you can import your Facebook Friends phone numbers to Address Book.
Firefox & Greasemonkey
The first thing you need to be able to import your Facebook phone numbers to Address Book is the Firefox Web browser and a plugin called Greasemonkey.
Head over to the Firefox website and download the web browser if you don’t already have it installed on your computer.

After you’ve installed Firefox you need to install the Greasemonkey plugin. This plugin will allow you to utilize a free application to gather all the Facebook phone numbers from our account.
Navigate to the Greasemonkey plugin page and click the add to firefox button.

After Greasemonkey is installed the application will ask to restart Firefox. Restart the browser and navigate to the Greasemonkey script page that you will utilize to get your Facebook friends phone numbers and import them into Address Book. Click install to add the script to your Greasemonkey collection.

Getting Your Facebook Friends Phone Numbers
Now that you’ve added Firefox, Greasemonkey, and the Greasemonkey script to get Facebook phone numbers, head over to http://www.facebook.com/friends/. Login to Facebook if you’re not already logged in and click on the Phonebook button.
Once the page has loaded, in Firefox click Tools >> Greasemonkey >> User Scrip Commands… >> Export Facebook Phonebook.

The application that will export the data may require you to login with a Google Account but will then transfer you to a page where it will allow you export your friend’s phone numbers into Address Book.
Adding to Address Book
Once you’ve ran the Greasemonkey script to export FacebookpPhone numbers and have found yourself on the AddressBooker menu, select Export as vCard. In the popup window that appears, select Open with Address Book and then press Ok.

Address Book should then launch and ask you to confirm that you’d like add the contacts to Address book. Allow Address book to import the new new vCard details and then merge the contact details on any overlapping imported contacts.
Once sync’d, Address Book on your desktop and iPhone will now contain the name and phone numbers of your friends who have shared their number on Facebook.
For additional details on the script and application used to export the phonebook details from Facebook visit Brad’s Life (the creator of the script and application).
NOTE: latest version of the script is working for some people. Others are still receiving errors.
Stay fashionable, go wireless with a Plantronics Voyager 510 Bluetooth Headset for your iPhone.




124 Responses so far.
liesl
March 25, 2009 at 6:31 pmwhen i come to tools/ greasemonkey/, the user scripts command doesn't funtion, and i've downloaded all the necessary things, so what now?
vasanth
April 5, 2011 at 10:49 amHow to download? What are the necessary things?
jj@yahoo.com
July 27, 2011 at 12:14 pmidk
Brent B Cameron
March 27, 2009 at 2:26 pmOr you can skip all of the above steps and use an application called AddressBookSync that will pull all of the users info from Facebook and put it into iCal and Address Book. It seems simpler in my opinion and I don't have to use Firefox. I'm a Safari user.
Dan
March 27, 2009 at 9:31 pmBrent – AddressBookSync DOES NOT sync phone numbers or email addresses from Facebook. It is good for adding photos to your address book contacts.
stojan
April 22, 2009 at 7:14 pmTnx. It doesn't work for me. When I run script it says
Couldn't find text: ['n' with phone numbers]
Dan
April 23, 2009 at 11:11 amstojan – were you sure to select the phone numbers tab?
Also, were any names listed when you did so?
Julio
April 29, 2009 at 5:17 pmThis is great, thanks for the tip. It worked great for me.
wanda
May 1, 2009 at 9:22 amRequired element 'summary' not found; aborting.
that comes up when i try to export the phonebook.
Joe
May 1, 2009 at 9:45 pmI have the same problem. Any solutions?
/Joe
Dan
May 3, 2009 at 3:01 amWanda & Joe, are you both using english? It looks like this only supports english facebook pages so that may be a problem.
Head over to Brad's Life: http://brad.livejournal.com/2398409.html if you're still having trouble. He developed the site and may know more about the problem.
GroliNof
May 5, 2009 at 2:45 amemm… thanks
csmith
May 6, 2009 at 4:50 ami think people may be having these problems because of the new facebook friends and phonebook pages…
jblaha
May 8, 2009 at 3:06 amYeah, that started happening when they redesigned that page….again.
Dan
May 9, 2009 at 9:17 pmThe developer has posted an update to the script that some people are reporting as working. Others are getting a new error. He is working on updates so keep checking back to see if the latest script is working with the newest page.
Erling
May 12, 2009 at 6:45 amWorked like a charm. Thank you.
Ciffima
June 3, 2009 at 3:42 pmwell.. it's like I said!
Mine: tube
Cary
June 29, 2009 at 5:54 amNo dice, won't allow me to execute the script on the phonebook page.
sean.blog : Social Networks to Mac Address Book
July 27, 2009 at 1:09 am[...] 1. Facebook Phonebook Exporter Greasemonkey script: This script will export phone numbers from Facebook friend lists. WARNING: This script currently uses a remote service to parse and return VCF files. So unless you plan to host the web app portion on your own server (code available on github), you will be sending some potentially private information to a remote server. Instructions on how to use this script are also available. [...]
Ash
August 6, 2009 at 1:56 pmWhat does it mean when I get this page: http://addressbooker.appspot.com/submit
"403 Over Quota
This application is temporarily over its quota"
David
August 17, 2009 at 2:51 pmThe instructions worked for me successfully.
Is there a way to do this same procedure with emails? Please say yes!
Danny
August 26, 2011 at 12:37 amyou can use yahoo to export emails from FB to yahoo contacts
arman
August 28, 2009 at 2:29 amI get this error:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLFormElement.submit]" nsresult: "0×80004005 (NS_ERROR_FAILURE)" location: "JS frame :: file:///Users/mushfeqkhan/Library/Application%20Support/Firefox/Profiles/001eng6s.default/extensions/%7Be4a8a97b-f2ed-450b-b12d-ee082ba24781%7D/components/greasemonkey.js :: anonymous :: line 368" data: no]
Can anyone help?
Dan
August 28, 2009 at 9:26 pmNot exactly sure what the problem is, but it looks like you may be having trouble with greasemonkey. Try re-installing it?
Anders
September 15, 2009 at 9:43 pmThis won't sync e-mail adresses right? Only phone numbers?
allison janoska
November 17, 2009 at 7:20 amcookie byrd
Chris
January 5, 2010 at 9:09 amWorks flawless
thanks
Only thing is in google contacts it doesn't import the pics… But that's not the end of the world! works GREAT!
josef
January 30, 2010 at 6:36 amIm at the friends page but when I go to select "user script commands", the button is not engaged so i cant click on it… any tips besides using another application ?
Dan
January 30, 2010 at 11:58 amTry the new Facebook iPhone app. We've covered it in another article.
Harry
February 2, 2010 at 12:31 pmFantastic post Dan, thanks a lot.
As others reported, a bit of trouble getting the GM script to run now that Facebook have changed their URLs around, but easily fixed by adding facebook.com/*friends* to the run list in GM’s preferences.
I use AddressBookSync as well, as mentioned by Brent, but having a quick and easy way to get mobile numbers in is really useful.
Now if only people would stop posting stupid numbers on Facebook -.-
Anselm Mak
February 19, 2010 at 8:03 amHey, this program still works! When you're on the Phonebook page, go to "Tools>Greasemonkey>Manage User Scripts" add "http://www.facebook.com/home.php?#!/friends/?filter=pfp" to the list of "Included Pages" for the application. Refresh the webpage and then run the applet.
chaiG
March 23, 2010 at 2:40 pmThanks Anselm – That's the ticket, I was getting the error messages until I followed your instructions! That's awesome, worked great for me (using firefox plug-in)
Niles
June 10, 2010 at 5:05 pmusing the Firefox plug-in, I'm getting the error: "Didn't find phonebook right for: null". Any suggestions?
Anon
June 16, 2010 at 7:24 amI had the same problem as the above poster today.
Max
June 17, 2010 at 8:26 amSame as above.
Dan
June 17, 2010 at 8:33 amFacebook must have a new layout. I suggest trying to sync through the iPhone if you have one. That way will work for sure.
Jonty
August 22, 2010 at 5:54 pmDan, thank you.
I am getting the null message too.
what is the process for doing as you say and "trying to sync through the iPhone".
thanks very much for your help – looks super useful if i can get it to work.
[i have an iphone 3gs on OS4. running firefox latest version on win7 home premium, 64 bit].
Jonty
August 22, 2010 at 8:17 pmactually, i sorted it. there is a new script on set 5
mike
August 28, 2010 at 12:48 amhow did you fix the 'null' error message? pretty please with cheese on top
kappz
August 29, 2010 at 3:46 amPlease how to fix it now? I'm desperate.
Candice
September 12, 2010 at 11:25 amWhenever i hit export facebook phonebook an error message comes up saying "Didn't find phonebook right for: null". Can anyone help?
Lavenia Boemig
October 31, 2010 at 7:38 aminordinate blog you've have in hand
Clint
November 25, 2010 at 2:28 pmI get the error "Failed to find UIPager_PageNum span. Can't determine paging / number of friends." Could this have something to do with my having 247 friends with telephone numbers and Facebook only showing 100 per page? Is there a workaround for this? Thank you for your help!
Dan
November 25, 2010 at 4:26 pmTry importing contacts email address through Yahoo: http://www.maciverse.com/import-your-facebook-fri…
And importing phone numbers through an iPhone or Android app.
http://www.maciverse.com/sync-your-facebook-frien…
Clint
November 26, 2010 at 3:20 pmI don't think this brings in phone numbers though, does it? It hasn't done that for me in the past.
Dan
November 26, 2010 at 4:38 pmThe iPhone App does bring in Phone numbers
Clint
November 27, 2010 at 6:54 amI've been using it for awhile now and can confirm it doesn't. See the third paragraph in this article: http://www.readwriteweb.com/archives/facebook_now…
Clint
November 27, 2010 at 12:54 pmHas anyone else seen this error message that I get?
Ian
December 2, 2010 at 8:41 pmI have. And it's very annoying! I just want my damn contacts….android did it fine…wtf is with this?
Chris
January 8, 2011 at 8:44 amI get this same error. Has anyone come up with a solution?
wedding minister des
November 30, 2010 at 3:43 pmEmerald coast wedding minister
David
December 9, 2010 at 4:31 pmFailed to find UIPager_PageNum span. Can't determine paging / number of friends. Getting the same error, any way to fix it?
Tom
December 13, 2010 at 8:16 ampossibly to do with the new facebook? im getting the same error
emma
December 15, 2010 at 2:43 pmwhen i go to click export facebook phonebook it comes up with..
Failed to find UIPager_PageNum span. Can't determine paging / number of friends.
how do i stop this happening???
Guestskis
December 24, 2010 at 9:53 pmI have the same error as emma, tom, david and clint. Can someone please advise?
Thomas
December 27, 2010 at 4:00 pmSame problem! Please some help…
Jen
December 30, 2010 at 10:29 amI have the same problem — any fixes yet?
How do you export friends phone numbers from Facebook? - Quora
December 30, 2010 at 12:39 pm[...] Lemenager, Online community manager for Microsof… This should help you out http://www.maciverse.com/add-you…Insert a dynamic date hereCannot add comment at this [...]
Nils
January 5, 2011 at 6:11 pmSame problem as above users… anything?
Dan
January 10, 2011 at 11:46 amTo everyone having trouble.. I've had the script updated and it is working for most people. Please try the link above or install the updated script at: http://www.maciverse.com/js/facebook_phonebook_ex…
Thomas
January 12, 2011 at 5:03 pmNow I don't receive the same message as before, but when I run the script on Facebook's phonebook page, nothing seems to happen.
Dan
January 12, 2011 at 5:20 pmMake sure to uninstall all version of the greasemonkey script before trying to install and execute the new one.
Also check the Tools >> Error Console to see what errors you're getting. Be sure to clear the error log.. then execute the script. Share with us what ever you're seeing.
Thanks!
Thomas
January 12, 2011 at 6:40 pmOk, I did as you said, and the error registered in the log is:
Error: uncaught exception: [Exception... "'[JavaScript Error: "phoneType[0] is undefined" {file: "file:///Users/Thomas/Library/Application%20Support/Firefox/Profiles/igwotvxg.default/extensions/%7Be4a8a97b-f2ed-450b-b12d-ee082ba24781%7D/components/greasemonkey.js" line: 523}]' when calling method: [gmIMenuCommand::doCommand]" nsresult: "0×80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame :: chrome://browser/content/browser.xul :: oncommand :: line 1" data: yes]
Dan
January 13, 2011 at 11:52 amThomas, I was able to remove this error by unsyncing my contacts on my phone to Facebook.
If you have individuals on your phone list that are not members of facebook it will break the script. If you unsync your addressbook through the facebook app and then click this link: http://www.facebook.com/contact_importer/remove_u… you should be able to re-execute the script after a few minutes.
You may want to copy down the phone numbers of friends you have that are not on Facebook.
Rob
February 6, 2011 at 11:47 pmDan, The I have lost my contacts on my phone but luckily they were synced with facebook before that happened, So is there any way for me to now get them back off facebook using this add-on? As obviously I dont want to remove them, as shown in the above method, as they are the ones I want!
Jurid34@hotmail.com
January 13, 2011 at 12:31 pmThe Script worked; however, the contacts imported with the Phone Number [u'1'] How Can I fix This?
Dan
January 13, 2011 at 12:38 pmWe're working on fixing this.. still locking down if its the way the Addressbook is importing the phone number or if its the script.
We see the [u1 but the full phone number is listed on windows machines, but seeing the problem with address book. Hopefully we will have an update soon.
Jurid34@hotmail.com
January 13, 2011 at 12:42 pmok,yeah when i downloaded as Vcard and uploaded to gmail, it just added the number as [u'1'] for every contact. Thanks alot for the fixes!!!
Jurid34@hotmail.com
January 13, 2011 at 4:17 pmand im running windows though actually, i forgot to mention that before
Dan
January 14, 2011 at 7:36 amWe've updated the script so please download and re-install it from the link above.
It should fix the numbers after 1 stripping out, but unfortunately the [u' is added by the appspot program that we don't have access to update or modify. You'll need to check with Brad, developer of that site. We're sending it clean versions of your phone number but his script is adding the [u'
Hope the updated script helps.
phillip
January 12, 2011 at 8:15 pmi get this error message: Failed to find the DIV. Can't determine paging / number of friends.
Samuel
January 26, 2011 at 7:27 pmI have a new option in facebook "EXPORT" as well as in the tools menu, but if i click it absolutely nothing happens
super bowl Packers J
February 10, 2011 at 11:04 pmNicely mentioned, I could not agree far more with you on this problem. I assume your blog is quite popular on this subject judging by all of the other comments posted to it. I just wanted to leave a comment to appreciate your difficult work.
Corey
February 12, 2011 at 5:40 pmIm Getting The Same Error As Above! Help!!
Dan
February 12, 2011 at 5:44 pmWhich Error, we've fixed a bunch so not sure what problem you're seeing?
pim
February 16, 2011 at 7:10 amDear Dan
I'm having the same problem as Samuel
"I have a new option in facebook "EXPORT" as well as in the tools menu, but if i click it absolutely nothing happens"
Alternatively, when I choose tools > greasemonkey > user script command > export facebook phonebook, nothing happens as well.
Can you pls advise what I should do? Thanks!!
Jacob
March 1, 2011 at 7:53 pmYea me too!
Dan
March 18, 2011 at 10:02 pmYou have contacts on your list that are throwing off the format. You'll need to remove the sync between your iPhone and your Facebook contact list before the export will work correctly.
How to Lower Blood P
March 28, 2011 at 7:52 pmGreat write up. Hold up along with your article writing mate.
princes
April 3, 2011 at 6:16 pmprinces +923004475512
cashmoney
April 9, 2011 at 5:39 pmWhat does this mean?
TypeError: expected string or buffer
Shonuff
April 22, 2011 at 11:11 pmexporting to gmail wasn't working, so I just saved the vcard and opened it in addressbook, but all the imorted numbers have a [u'1 ###.###.####] format. any ideas how to fix this?
Rob
May 10, 2011 at 9:22 pmThe problem i am having is that it only is porting 100 of the numbers and my Facebook page has over 500 phone numbers…..is there a way i can get all of them ported out? Pls respond as soon as possible
Dan
May 11, 2011 at 4:10 amtry goign to page 2 of the numbers and then running the script.
masilamani
June 22, 2011 at 7:48 amsome diffend friends
griffjon21@yahoo.com
June 23, 2011 at 12:55 pmI've done all the necessary installments and downloads and even removed mobile contacts from the phonebook but when I click export nothing happens… Please respond asap
griffjon21@yahoo.com
June 24, 2011 at 3:09 pmI have over 250 FB contacts and I tried your suggestion and still nothing happened… If I delete a couple pages of contacts and leave one, will they be gone permanently?
zach
July 7, 2011 at 8:10 pmFailed to find UIPager_PageNum span. Can't determine paging / number of friends….
What do you do when this error pops up???
Jason
July 20, 2011 at 2:18 pmI'm guessing there isn't a solution. I have the same error message. Has the creator of this article done a runner?
matt
August 10, 2011 at 4:16 pmit only works for the first 100 contacts then when i click to the next 100 it doesnt work what do i do? http://www.facebook.com/friends/edit/?sk=phoneboo… ; =200; 300 etc doesnt work but the http://www.facebook.com/friends/edit/?sk=phoneboo… does work
saurav arorasaurav arora
August 23, 2011 at 1:59 pmmy best frnd__________my best frnd__________
sara
October 20, 2011 at 8:03 pmneeds to update. i sat here for 45 mins trying to find the phonebook on facebook and there is no such link
tyler
October 26, 2011 at 1:17 pmThats where I am too
tiffany
November 3, 2011 at 2:45 ami dont now how to add a friand on facebook on my phone how do yo doit?
ryan
November 6, 2011 at 11:14 pmcant find the phonebook on fb
How do I add all my Facebook friends to my iPhone contacts? - Quora
November 21, 2011 at 3:02 pm[...] like you can on Android.Cannot add comment if you are logged out. Anon User http://www.maciverse.com/add-you…This answer .Please specify the necessary improvements. Edit Link Text Show answer summary [...]
Rasheed ullah
December 26, 2011 at 11:41 amMera roop mahekne laga
Mujhe kya hua kya kahoon
Tere pyaar ka chhaaya nasha
Yeh samaa mahekne laga
Mujhe kya hua kya kahoon
Dil aaj bahekne laga
Jaane jaan meri har nazar mein
Yeh dil mein, jigar mein basa hai ek tu
Yeh doori mitaa le, gale se lagaa le
Aa keh doon tujhe I love you
Jaane jaan meri har nazar mein
Yeh dil mein, jigar mein basi hai ek tu
Yeh doori mitaa le, gale se lagaa le
Aa keh doon tujhe I love you
Tere pyaar ka chhaaya nasha
Mera roop mahekne laga
Mujhe kya hua kya kahoon
Lagta hai jaise badan mein
Ho aag baheki hui
Jalne lagi meri saansein
Dhadkan hai baheki hui
Mera dil hua hai deewana
Yun zulfon se teri udi hai khushboo
Mere paas aaja, tu mujh mein samaa ja
Aa keh doon tujhe I love you
Jaane jaan meri har nazar mein
Yeh dil mein, jigar mein basa hai ek tu
Yeh doori mitaa le, gale se lagaa le
Aa keh doon tujhe I love you
Tere pyaar ka chhaaya nasha
Yeh samaa mahekne laga
Mujhe kya hua kya kahoon
Dil aaj bahekne laga
Teri nazar mere dil pe
Jaadu chalaati rahi
Kuch main chhupaata raha hoon
Kuch tu chhupaati rahi
Jaane kya hua hai jo tune chhua hai
Ke dil pe nahin hai kaabu
Mujhe pyaar kar le, tu baahon mein bhar le
Aa keh doon tujhe I love you
Jaane jaan meri har nazar mein
Yeh dil mein, jigar mein basi hai ek tu
Yeh doori mitaa le, gale se lagaa le
Aa keh doon tujhe I love you
Tere pyaar ka chhaaya nasha
Mera roop mahekne laga
Mujhe kya hua kya kahoon
Dil aaj bahekne laga
Tere pyaar ka chhaaya nasha
Yeh samaa mahekne laga
Mujhe kya hua kya kahoon
Dil aaj bahekne laga
Jaane jaan meri har nazar mein
Yeh dil mein, jigar mein basa hai ek tu
Yeh doori mitaa le, gale se lagaa le
Aa keh doon tujhe I love you
Jaane jaan meri har nazar mein
Yeh dil mein, jigar mein basi hai ek tu
Yeh doori mitaa le, gale se lagaa le
Aa keh doon tujhe I love you.03332467669/03422208412
Jack
December 28, 2011 at 5:42 pmThis method will no longer worker since Facebook has removed the phonebook
dan
January 6, 2012 at 1:42 pmLarryAllen
December 30, 2011 at 11:01 amFound this on ehow and it took two steps – all I had to do was download the FB app. SO much easier than everything stated above. Good luck!
http://www.ehow.com/how_6157908_send-facebook-con…
dan
January 6, 2012 at 1:41 pmthis doesnt add new contacts
asit
January 2, 2012 at 9:54 amCan u friendship me
griffin ipad 2
January 19, 2012 at 11:04 pmThis is an excellent idea. Basically, the best thing about it is that you will have all your contacts at one place. Facebook is becoming the lifeline of people and I think people use Facebook more than their cell phone these days.
SWEETY
March 11, 2012 at 4:49 amHI FRIEND, I AM SWEETY FRM ALIPURDUAR, I HV NO FRIEND PLS SOMEONE FRIENDSHIP WITH ME PLS MY CONTACT NO 8944099341 PLS CL ME ONLY BOYS……
free xbox live games
May 23, 2012 at 9:51 amHowdy, There’s no doubt that your blog could be having browser compatibility issues. Whenever I look at your blog in Safari, it looks fine however, if opening in IE, it has some overlapping issues. I simply wanted to give you a quick heads up! Besides that, great blog!
Rama
June 7, 2012 at 10:35 pmMmmm
htc one x car dock
August 14, 2012 at 7:47 pmThis is a richly useful review. Thank you. I’ve just ordered one of these on contract so are going to be interested to see how we get along!
Saniya Yasmeen
September 9, 2012 at 2:02 pmMear Name Saniya Yasmeen Hy,
Me 10th Class K Exame Dy Kar Abhi Farigh hui Hu’n
Me Poor Girl Hu’ Lekin Khoobsurat Hu’n
Meri Mummy Ki Death Ho Chukki Hy.
MHum Sirf 4 Family Members He’n
Or Mujhy Nokri Ki Sakht Zaroorat Hy Chahy Jesi Bhi Ho
Izzat Wali Ya Zillat Wali Me Karungi Plz Jo Jo Mera Ye Msg Pare;n Or Koi Nokri Ki Information Ho to Plz Plz Me Ap Sy Request Karti Hu’n K mujhy In numro Par call Kr K Zaroor Batana ek Bar Phir Ap Sy Meri Request Hy
Your Obbidently
Saniya Yasmeen From Jhelum
03328849089
03009520636
Anonymous
September 20, 2012 at 2:57 amAnonymous
September 20, 2012 at 7:58 pmAnonymous
September 21, 2012 at 8:50 amAnonymous
September 22, 2012 at 9:17 pm