Brad
Brad

Reputation: 159

How to open Facebook app settings from another App IOS?

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 ?.

Upvotes: 2

Views: 635

Answers (1)

Anbu.Karthik
Anbu.Karthik

Reputation: 82759

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)!)
 }

Upvotes: 2

Related Questions