Facebook – How to create a “Facebook friends list” from a local file containing Facebook friends ids

facebookfacebook-integrationfriend-list

I have a local text file containing Facebook ids, one per line, like this:

938751234570943
9875123457623
...
43639193242324

These ids actually are those of my Facebook friends interested in jazz.

Now I would like to create a "jazz" Facebook friends list ("Facebook friends lists" are Facebook feature) to easily invite them to jazz events.

How to create this Facebook friends list?

Best Answer

Facebook API would probably be the most natural. However, if you have access to Linux you can at least extract the friends' names using wget as follows (see also wget for fetching Facebook profile/friend pages):

wget -U Mozilla --wait 1 "https://www.facebook.com/profile.php?id=938751234570943"

This will download the publicly available content and depending on privacy settings the name of the contact will appear and could be parsed.