Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8973285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:24:44+00:00 2026-06-15T18:24:44+00:00

It seems to me, thath at the very first session opening request, the iOS

  • 0

It seems to me, thath at the very first session opening request, the iOS integrated Facebook, and the old “app switching” authorization works in a different way.

The first needs to open the session with read permissions only, then ask for publish permission at publish time.

The old one needs to request for every permission at the first time, so app will be able to post later on (otherwise not).

So I split the session opening logic in my facebook connect method:

-(void)connectWithSuccess:(EPPZSuccessBlock) successBlock
                     fail:(EPPZFailBlock) failBlock
{
    if (FBSession.activeSession.isOpen)
    {
        if (successBlock) successBlock();
        [self socialServiceDidConnect:self];
    }

    else
    {
        //This is what I need to decide somehow.
        BOOL userHaveIntegrataedFacebookAccountSetup = NO;

        if (userHaveIntegrataedFacebookAccountSetup)
        {
            //Request for a session with read permissions only, otherwise iOS integrated Facebook will throw me an exception.
            [FBSession openActiveSessionWithReadPermissions:[NSArray arrayWithObject:@"user_about_me"]
                                               allowLoginUI:YES
                                          completionHandler:^(FBSession *session, FBSessionState status, NSError *error)
             { [self handleOpenSessionResponseWithSession:session status:status error:error success:successBlock fail:failBlock]; }];
        }
        else
        {
            //Request for session with every (incuding publish) permissions, otherwise non integrated Facebook won't let the app to post later.
            [FBSession openActiveSessionWithPublishPermissions:self.publishPermissions
                                               defaultAudience:FBSessionDefaultAudienceEveryone
                                                  allowLoginUI:YES
                                             completionHandler:^(FBSession *session, FBSessionState status, NSError *error)
             { [self handleOpenSessionResponseWithSession:session status:status error:error success:successBlock fail:failBlock]; }];
        }
    }
}

But I need some kind of easy detection of which one to use, so the question goes: How to detect if user have an iOS integrated Facebook account setup before request session?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:24:45+00:00Added an answer on June 15, 2026 at 6:24 pm

    As far as I know, the proper way to find this out is to use

    [SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]

    Note that this is iOS 6 and later only! Part of Social.framework.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently I have finished my first Iphone app and it works grate.... except for
I have an issue that seems like very flaky behavour, is this a problem
Most of Knockout seems very intuitive. One thing that is strange to me though
The current application that I'm working on seems to recycle the application pool very
it seems that the Parameter-Name in the GET request, that represents the SessionID (like
I have iframe based facebook app, I just want to do is that whenever
This is actually my very first question on Stackoverflow. I hope its not the
Please forgive me if I don't explain this very well. First off, I am
In my very first impression of Haskell, it's a language can handle execute-then-result things
Hi well the problem I am facing seemed to be very simple at first

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.