Getting Facebook Profile Pic in tableView Cell's ImageView [closed]

耗尽温柔 提交于 2019-12-08 13:52:40

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!