i have a simple question:
I can´t force the [UIApplication sharedApplication] openUrl: to open the url in the web navigator, always open the Facebook app and don´t go to the facebook pages.
i have a simple question:
I can´t force the [UIApplication sharedApplication] openUrl: to open the url in the web navigator, always open the Facebook app and don´t go to the facebook pages.
I solve this problem adding the "?ref=0" in the url. It's works.
I don't know what Facebook url are you using, however, to open Facebook in Web Navigator I'm using:
http://www.facebook.com/pages/DrMama/582190345150285
then:
fbProfile = @"http://www.facebook.com/pages/DrMama/582190345150285";
NSURL *fbURL = [NSURL URLWithString:fbProfile];
[[UIApplication sharedApplication] openURL:fbURL];
That is opening Web Navigator without problem.
I use URL shortener to get around. There are a lot e.g. https://bitly.com/, http://goo.gl/
Bitly shortens a Facebook url to "http://on.fb.me/abc123", so it doesn't look that ugly. It even looks better than Google URL shortener in fact :)