[[[FBSDKGraphRequest alloc] initWithGraphPath:@"me" parameters:parameters]
startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error){
NSLog(@"RESULT===%@",[[[result valueForKey:@"albums"] valueForKey:@"data"] valueForKey:@"id"]);
arrayAlbum=[[[result valueForKey:@"albums"] valueForKey:@"data"] valueForKey:@"id"];
}];
我的arrayAlbum第一次显示nil如何纠正它?
答案 0 :(得分:0)
您是否先分配并初始化了阵列?
arrayAlbum = [[NSArray alloc] init];