Reputation: 7900
I want to show facebook profile in my app, until now i use the method:
NSURL *url = [NSURL URLWithString:@"fb://profile/userId"];
[[UIApplication sharedApplication] openURL:url];
But i want to know if there is a possible to show the profile inside my app and not open facebook app for this. I want to do it because the problem that when there is no FaceBook app in the iPhone so the user can't see the profile.
Upvotes: 1
Views: 113
Reputation: 6205
you can create a webView to display this.
UIWebView
, set the frame
, add to view
load the page with that url
, look into this function:
(void)loadHTMLString:(NSString *)string baseURL:(NSURL *)baseURL
and be sure to checkout the UIWebView
class reference here: UIWebView
Class Reference
Upvotes: 2