So I have a UITableView of Facebook Friends and for a cell I want to add the image to it.
When I try the following code:
cell.imageView.
replace: (@"http://graph.facebook.com/%@/picture", thisFriend.friendID)
with this:
[NSString stringWithFormat:@"http://graph.facebook.com/%@/picture", thisFriend.friendID];
Looks like you just forgot the method for formatting a string.
try
cell.imageView.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:
[NSURL URLWithString:[NSString stringWithFormat:@"http://graph.facebook.com/%@/picture", thisFriend.friendID]]]];