简体   繁体   中英

getting Facebook friends list from a php server

I want to get facebook friends Id of a specific facebook user. how can i do this?

in detail : I have a server, and form a mobile I'll send a facebook id of a user to that server. accoding to that facebook id I want to get facebook ids of friends of that user. (this should do from server) please any one guide me to do that.

answer = for this we should have access token.

Sounds like facebook wouldn't like that :) You could scan profile.php?id=&sk=friends and parse the output for the ids. But I'm sure the habe some fancy Ajax running giving you an easier method.

Have you checked their API? https://developers.facebook.com/docs/reference/api/FriendList/ But you need permissions for that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM