[英]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.