Reputation: 896
I'm trying to get the list of all my friends with me?fields=friendlists&locale=it_IT
but I get only the ID and not his name. How can I get it ?
One more question... Once I know the id of my friends how can I get their profile pictures ?
Upvotes: 0
Views: 77
Reputation: 15457
You can get a list of friends and their names using:
/me?fields=friends&locale=it_IT
Or
/me/friends?fields=name
Then, to show their profile picture, just do the following in your HTML code (replace {friend_id}
with friend's ID):
<img src="https://graph.facebook.com/{friend_id}/picture" />
Upvotes: 1