Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 792
ChrisBorg Avatar asked Sep 21 '12 20:09

ChrisBorg


2 Answers

The problem is that you may not use the short name. It has to be the 'id' for it to work currently.

iOS6 and facbook URLs not opening correctly in facebook app

like image 69
Bryan Roberts Avatar answered Oct 19 '22 23:10

Bryan Roberts


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

like image 23
ChrisBorg Avatar answered Oct 20 '22 00:10

ChrisBorg