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]の最初の行にa を追加しましたか?didFinishLaunchingWithOptions

于 2014-08-11T23:19:23.870 に答える