Reputation: 45911
I'm developing an Android app that connects with Facebook to get user facebook's friends.
To do it, I use this URL "https://graph.facebook.com/me/friends?access_token="
but it doesn't return friends's gender.
How can I do it to get friends's gender?
Maybe I have to add some parameter to the URL.
Upvotes: 1
Views: 340
Reputation: 22873
Displaying a Friend
object only displays his ID
and name
.
You have to indicate that you want the gender!
me/friends?fields=gender&access_token=
If you still want the name:
me/friends?fields=gender,name&access_token=
Upvotes: 4