Search code examples
iphonefacebookios6

Linking to a Facebook Page with iOS6


So I am trying to link to a Facebook page on iOS6 from my app using

NSString* urlString = @"https://www.facebook.com/vioside";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: urlString]];

This opens up the Facebook app successfully but it doesn't go on my page. Anyone has an idea on how to link properly on iOS6?


Solution

  • I fixed this myself by removing the 'www' from the url. It's funny but with the 'www' is only opens the Facebook app, after removing it, safari is opened instead and views the proper page. Maybe it's an iOS6 bug but this worked for me