Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

How can I get the Facebook identifiers of all of my Facebook friends? I mean the numbers like 7843652532 or 93923423.

(I am using these IDs to associate with my address book.)

share|improve this question
    
Do you mean all of the ID's of your Facebook friends? What format do you want the ID's in - a list, JSON etc? –  Barry Feb 2 '11 at 11:57
    
@Barry: Yes :-) Any format would be OK, for instance list or JSON. –  nic Feb 2 '11 at 12:10

2 Answers 2

up vote 0 down vote accepted

Barry's answer has worked great in the past, but I can't find this link anymore.

This can be used instead, even though it involves painful scrolling:

https://developers.facebook.com/tools/explorer/?method=GET&path=me/friends

share|improve this answer

You get this is JSON format by going to http://developers.facebook.com/docs/reference/api

About the 4th paragraph you need to click the link next to "Friends" (which is https://graph.facebook.com/me/friends) however the link on the page includes an Authorization token which is require to run the query.

Facebook Friends Link

This will give a JSON result of all friends names and Facebook ID's

share|improve this answer
    
Impressive! Not need to write a request or authorize an application or anything :-) –  nic Feb 2 '11 at 12:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.