The below is the code I used to get a data of URL from a facebook page. I need to display those datas in a view. How to do it?
NSURL *URL = [NSURL URLWithString:@"https://www.facebook.com/104958162837/posts/10151442797857838"];
NSURLRequest* request = [NSURLRequest requestWithURL:URL];
[NSURLConnection sendAsynchronousRequest:request
queue:[NSOperationQueue mainQueue]
completionHandler:^(NSURLResponse * response,
NSData * data,
NSError * error) {
if (!error){
NSLog(@"%@",data);
// I want to render this data in a view.
}
}];
I can get the proper values in the in NSData. I want to display those datas in a webview or uilabel or something to display those datas.