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 8688677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:26:01+00:00 2026-06-12T23:26:01+00:00

Using the latest facebook sdk 3.1, I open a session requesting permissions using: [FBSession

  • 0

Using the latest facebook sdk 3.1, I open a session requesting permissions using:

[FBSession openActiveSessionWithReadPermissions:permissions
                                      allowLoginUI:allowLoginUI
                                 completionHandler:^(FBSession *session, FBSessionState state, NSError *error) {
                                     [self sessionStateChanged:session state:state error:error];
                                 }];

My sessionStateChanged method looks like this:

- (void)sessionStateChanged:(FBSession *)session
                        state:(FBSessionState)state
                        error:(NSError *)error
{

    switch (state) {
        case FBSessionStateOpen:
            // handle successful login
            break;
        case FBSessionStateClosed:
        case FBSessionStateClosedLoginFailed:
            // handle failed login
            break;
        default:
            break;
    }
}

Is there any way inside sessionStateChanged to distinguish if this is the first time the user has ever logged in (i.e. they have never before given us permission for this particular app)?

  • 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-12T23:26:03+00:00Added an answer on June 12, 2026 at 11:26 pm

    There is no way to know if this is the user’s first time authorizing the application or not. Your best option is to track within your own application if they have logged in before.

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

Sidebar

Related Questions

I'm using the latest facebook iOS SDK (supporting SSO) to connect my iPhone app
I'm using the latest Facebook IOS SDK to publish messages on the wall of
I want to implement facebook login in my iphone application using the latest sdk
Hello I am using latest facebook php sdk for my app. I am getting
I'm using the latest Facebook SDK on iOS 5. I can use SSO to
I am using the latest facebook IOS SDK, and I am getting random facebookErrDomain
I am using the latest Facebook iOS SDK 3.0 I need a help in
I am using the latest facebook sdk. Everything works fine even the post on
I'm making an facebook app by using Xcode4.2 and Facebook SDK latest version. I
I am using the latest Facebook SDK for iOS and Graph API. Works Great.

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.