2012-05-31 24 views
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] 

;getting birth_day =從Facebook空的API

我用上面的代碼來獲得朋友的信息..... 但問題是,我得到birth_day="null" 請sugget我的解決方案....... thaks提前....

回答

0

訪問權限生日這樣..

[facebookObj authorize:App_ID permissions:[NSArray arrayWithObjects:@"offline_access",@"publish_stream",@"user_birthday",@"user_events",@"read_stream",@"friends_likes", nil] delegate:self];