[英]FBProfilePictureView not showing profile photo
我在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);
}];
}
您是否在AppDelegate的didFinishLaunchingWithOptions
的第一行中添加了[FBProfilePictureView class]
?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.