-1

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.

0

1 Answer 1

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];
}
3
  • hai @Sebrassi. can u please tell where to call [facebook requestWithGraphPath:@"me/picture" andDelegate:self]; method. actually i have written both u mentioned above.but i am not getting the image. may be i am calling wrong place. help me pls. Aug 24, 2012 at 4:45
  • 1
    you should take a look at the new Facebook SDK for iOS: developers.facebook.com/docs/tutorials/ios-sdk-tutorial/…
    – user459672
    Aug 24, 2012 at 12:31
  • thanks @Sebrassi it helps for me . Can you please help me in displaying that profile pic in tableview cell's imageview. please help me any one in this. Aug 28, 2012 at 9:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.