简体   繁体   中英

Get Facebook's friend gender

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.

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=

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