Question

I do have sharing FB/Twitter in my app, using this code :

SLComposeViewController *vc = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];

It works fine, when user doesn't have FB/Twitter, it prompt below alert :

enter image description here

Now, I do have Facebook integration / login. and I need to check first whether this particular device has Facebook account or not. my goes :

if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook])
 {
   [self connectFB];
 }
  else{
    //show alert
 }

I want to show alert similar to what Social Framework was showing above. I can create alert my self, but I cannot direct user to go to Facebook Settings when user click on Settings button (not possible).

Is there any code to show pragmatically alert like above ?

Was it helpful?

Solution

No, you cannot show it. You can go ahead and popup the SLComposeViewController to send a message and it will display the alert, but then you will see the compose UI behind the alert, which may or may not be okay with you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top