`//now load all my friend's birthdays
NSMutableDictionary * params =
[NSMutableDictionary dictionaryWithObjectsAndKeys:
@"select birthday, name, uid, pic_square from user where uid in (select uid2 from friend where uid1=me()) order by name",
@"query",
nil];'
[self.facebook requestWithMethodName: @"fql.query" andParams: params andHttpMethod: @"POST" andDelegate: self];
这只会让我成为第一个朋友的名字。我如何获得朋友的所有细节?
答案 0 :(得分:0)
您需要向用户询问friends_birthday
权限。否则你将无法获得朋友的生日。这也取决于朋友的隐私设置 - 只有在他们的个人资料中显示DOB时才会看到DOB。