1
我有以下方法在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);
}];
}
http://stackoverflow.com/questions/12437046/get-facebook-user-profile-data-after-getting-access-token-in-ios-5請參考這個希望這將有助於你.. – Anjaneyulu