简体   繁体   中英

FBProfilePictureView not showing profile photo

I have the following method as in Facebook's tutorial.

However, the profile photo does not show up.

I can see the user.name in the userNameLabel, and looking at the log the self.userProfilePictureView.profileIDis set properly.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM