我正在编写一个应用程序,我在其中获取 facebook 好友列表以及他们的姓名、个人资料照片和生日,以获取我正在使用以下查询:
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";
我已经给了这些权限:
String[] facebook_permissions = { "user_photos", "user_birthday",
"friends_birthday", "friends_photos", "read_stream",
"offline_access" };
但现在我也想显示我的 facebook 朋友的年龄,我想我应该使用
age_range
我也试图通过使用以下查询来获取 facebook 朋友的年龄,但我得到 null 代替年龄:
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";