Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook API for iOS, Getting friends' profile pictures

Tags:

ios

facebook

I would like to know how I can fetch friends' profile picture and display them with the Facebook API for iOS

Thanks

like image 321
jkigel Avatar asked Jan 25 '11 06:01

jkigel


2 Answers

One line solution:

https://graph.facebook.com/me/friends?access_token=[oauth_token]&fields=name,id,picture
like image 196
darki699 Avatar answered Nov 16 '22 00:11

darki699


You can get a list of your friends at this endpoint: https://graph.facebook.com/me/friends. Then, you can get a friend's profile picture at this endpoint: https://graph.facebook.com/[profile_id]/picture.

Be sure to use this SDK: https://github.com/facebook/facebook-iphone-sdk

Hope this helps!

like image 39
donkim Avatar answered Nov 15 '22 23:11

donkim