If you are a Facebook user, many of your friends might have phone numbers which they share with you. If you have a large number of friends, copying and pasting them to your external contact list can be quite a pain.
Export Facebook Phonebook is a handy Greasemonkey script which will allow you to export all the phone numbers and few other additional details like Name, City, etc from your Facebook account as a CSV file.
The script does not work out of the box as it is for two reasons. First is because Facebook does not use outright URL’s, and instead appends the navigation to the current URL. So in order for this to work, you will have to directly load the phonebook URL. Also the shortcut key assigned for this script Ctrl + Shift + Dis the browser’s bookmark shortcut, which does not get overridden.
Export your Facebook Phonebook as CSV
Step 1: Install the Greasemonkey add-on for Firefox if required, and then install the Export Facebook Phonebook Userscript.
Step 2: Login to Facebook and click on this URL to open the Facebook Phonebook page.

Step 3: Go to the Greasemonkey menu and select Export Facebook Phonebookfrom the User Script Commands sub-menu. Clicking on this should update the current page in rapid succession, however, that is the script scraping the phonebook from Facebook.
Step 4: Once all the Phonebook entries have been imported, you will see an option to download the the contents as a CSV file. The full CSV file contains the following details:
Name,City,State,Phone #,Network / Other Info,Contact Result,Notes / Next Step,Who Calls,Month to call back,Year,Who’s List
Techie Buzz Verdict
We have tested and found that this script works without any problems, however, this might not be valid according to Facebook TOS. The export process is pretty fast and you might consider using this if you have a large number of contacts whose phone numbers you want to export and use externally.
There is a slight problem with the URL which is tracked by the script and the problem that the shortcut which does not work, because of which it will not work out of the box in Google Chrome. However, you can modify the line below to change the dto something else as the shortcut key.
GM_registerMenuCommand("Export Facebook Phonebook", doExport, "d", "control shift","f");
Ratings: 2.5/5 (Good)