我在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);
}];
}
答案 0 :(得分:0)
您是否在AppDelegate的[FBProfilePictureView class]
的第一行添加了didFinishLaunchingWithOptions
?