I want to redirect user to my App's Facebook page, so I have the following code:
[[UIApplication sharedApplication] openURL:
[NSURL URLWithString: @"https://facebook.com/myAppsPage"]];
this works great, if there is no Facebook app on device. Then the link opens in Safari.
If there is Facebook app installed on device, then after executing above code Facebook app opens, but it is showing users timeline, not my app's page. I tried to change link to @"fb://pages/myAppsPage"
and to @"fb://profile/myAppsPage
, but this again opened users timeline.
So, my question is: how can I open my apps page in safari, if there is no Facebook app, or in Facebook app, if the one is installed.