FBProfilePictureView不显示个人资料照片

问题描述:

我有以下方法在Facebook的教程中。FBProfilePictureView不显示个人资料照片

但是,个人资料照片不显示。

我可以在userNameLabel中看到user.name,并查看self.userProfilePictureView.profileIDis的日志设置是否正确。

- (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

http://stackoverflow.com/questions/12437046/get-facebook-user-profile-data-after-getting-access-token-in-ios-5请参考这个希望这将有助于你.. – Anjaneyulu

你有没有在didFinishLaunchingWithOptions在AppDelegate中的第一行中加入[FBProfilePictureView class]