Tell me more ×
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. – Nicolas Raoul Feb 2 '11 at 12:10

1 Answer

up vote 3 down vote accepted

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 :-) – Nicolas Raoul 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.