1

我在 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);
    }];
}
4

1 回答 1

0

您是否在 AppDelegate[FBProfilePictureView class]的第一行添加了一个?didFinishLaunchingWithOptions

于 2014-08-11T23:19:23.870 回答