我在 Facebook 的教程中有以下方法。
但是,个人资料照片不显示。
我可以在 userNameLabel 中看到 user.name,并查看日志中的 self.userProfilePictureView.profileID 设置是否正确。
- (void)populateUserInfo{
AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
[appDelegate requestUserData:^(id sender, id<FBGraphUser> user) {
self.userNameLabel.text = user.name;
self.userProfilePictureView.profileID = [user objectForKey:@"id"];
NSLog(@"%@", self.userProfilePictureView.profileID);
}];
}