我正在尝试从 Facebook 获取一些数据,我能够得到的是:
[[[FBSDKGraphRequest alloc] initWithGraphPath:@"me" parameters:@{ @"fields" : @"id,name,first_name,last_name,picture.width(300).height(300),gender,birthday"}]startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
NSString *nameOfLoginUser = [result valueForKey:@"name"];
fNameUser = [result valueForKey:@"first_name"];
lNameUser = [result valueForKey:@"last_name"];
genderUser = [result valueForKey:@"gender"];
ageUser = [result valueForKey:@"birthday"];
NSString *imageStringOfLoginUser = [[[result valueForKey:@"picture"] valueForKey:@"data"] valueForKey:@"url"];
}
如何从 API 中获取“年龄”和“工作时间”。