2

I have the code to open my app settings:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];

But how do i get it to open Facebook app settings instead of mine ?.

Anbu.Karthik
  • 82,064
  • 23
  • 174
  • 143
Brad
  • 159
  • 11
  • I want to know how too because facebook login fails when the user disables your app from facebook under Facebook's settings – user1709076 Jun 16 '16 at 17:10

1 Answers1

2

for reference purpose I Taken the answer from here

If your app has it’s own settings bundle, the settings will be opened showing your app’s settings. If your app does not have a setting bundle, the main settings page will be shown.

if(&UIApplicationOpenSettingsURLString != nil)
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
}

Swift

if UIApplicationOpenSettingsURLString != nil {
UIApplication.sharedApplication().openURL(NSURL(string: UIApplicationOpenSettingsURLString)!)
 }
Community
  • 1
  • 1
Anbu.Karthik
  • 82,064
  • 23
  • 174
  • 143
  • How would i edit this to open Facebooks App Settings instead of mine? – Brad Sep 08 '15 at 11:04
  • doesnt ans the op's qns – Gerald Aug 22 '16 at 22:40
  • i agree. i want to open the facebook settings because someone said 'dont allow app xyz access to log me in through facebook'. if they change their mind later, they won't know how to find facebook settings > allow my app xyz – user1709076 Oct 26 '16 at 15:09