看板 MacDev 關於我們 聯絡資訊
用facebook sdk,用facebook dev官網提供sample code [FBRequestConnection startWithGraphPath:@"/me/friends" parameters:nil HTTPMethod:@"GET" completionHandler:^( FBRequestConnection *connection, id result, NSError *error ) { NSLog(@"result is %@",result); NSArray* friends = [result objectForKey:@"data"]; NSLog(@"%@",[result objectForKey:@"summary"]); if (friends.count==0) { NSLog(@"is nil"); } NSLog(@"friends is %@",friends); for(NSDictionary<FBGraphUser>* friend in friends) { NSLog(@"%@", friend); } }]; 我取出來的friends都是nil,請問我哪裡沒注意到嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.132.55.158 ※ 文章網址: http://www.ptt.cc/bbs/MacDev/M.1409061362.A.588.html
dreambird: fb現在的friend list只能取得同時有裝你app的人了 08/26 22:02
howdiun: Graph API Explorer也許可以幫上忙 08/27 09:46
BS0824: 同一樓,我之前也在找取得所有朋友的API結果沒有... 08/27 14:16
BF109Pilot: 什麼???那打亂我全盤的計畫了啊(淚) 08/27 22:13
lolicontrol: V1.0 前可以取得朋友資料,V1.0後就不行了 08/28 11:06
lolicontrol: 1.0之前用的app不受影響,但'聽說'好像之後會 08/28 11:11
lolicontrol: 強制下架然後要你用新版本 08/28 11:12