1
NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                @"select uid,name,birthday_date from user where uid in (select uid2 from friend where uid1=me())", @"query",
                                nil];
[[StaticFacebook getFacebook] requestWithMethodName: @"fql.query" 
                       andParams: params
                   andHttpMethod: @"POST" 
                     andDelegate: self]

;

上記のコードを使用して友達情報を取得しています.....しかし、問題はbirth_day="null" 、解決策を教えてください........事前に感謝します.....

4

2 に答える 2

0

誕生日フィールドを取得するための適切なアクセス許可を要求したことを確認してください。

user_birthday - Provides access to the birthday with year as the birthday property

参考:https ://developers.facebook.com/docs/authentication/permissions/

于 2012-05-31T07:50:28.860 に答える
0

このように誕生日の許可にアクセスします..

[facebookObj authorize:App_ID permissions:[NSArray arrayWithObjects:@"offline_access",@"publish_stream",@"user_birthday",@"user_events",@"read_stream",@"friends_likes", nil] delegate:self];
于 2012-05-31T09:29:11.607 に答える