I am writing an app in which i am fetching list of facebook friends along with their names, profile pics and birthdays, to get that i am using below query:
String query = "SELECT name, birthday, uid, pic_square FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me()) ORDER BY birthday_date ASC";
and i have given these permissions:
String[] facebook_permissions = { "user_photos", "user_birthday",
"friends_birthday", "friends_photos", "read_stream",
"offline_access" };
but now i also want to show Age of my facebook friend, and i guess to get that i should use
age_range
I am also trying to get age of facebook friends by using below query but i am getting null in place of age:
String query = "SELECT name, birthday, uid, pic_square, age_range FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me()) ORDER BY birthday_date ASC";