问题
i have created an application in facebook required for my iphone application.
i am able to login to facebook account and i can allow that application into my application.
am able to get profile pic url of loggedIn user.
EDIT my problem is i need to convert that url to image type and need to display in tableview cell. can anyone tell me regarding this. please help me. thanks alot for help in advance.
回答1:
you need to do a request like this:
[facebook requestWithGraphPath:@"me/picture" andDelegate:self];
and then:
(void)request:(FBRequest *)request didLoad:(id)result {
imageView.image = [UIImage imageWithData:result];
}
来源:https://stackoverflow.com/questions/12093323/getting-facebook-profile-pic-in-tableview-cells-imageview