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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:07:32+00:00 2026-06-14T15:07:32+00:00

I just upgraded from Facebook iOS SDK 3.0.X to 3.1.1, and rewrote some code…

  • 0

I just upgraded from Facebook iOS SDK 3.0.X to 3.1.1, and rewrote some code…

As per Facebook documentation for the logout workflow (https://developers.facebook.com/docs/tutorials/ios-sdk-tutorial/authenticate/#step3), I’m calling the closeAndClearTokenInformation method of the FBSession.activeSession object.

This seems to have no effect on the Facebook session state, because checking it right after the call still returns an open session.

As it stands, once my application logs in with Facebook, it doesn’t logout.

[UPDATE 1]

As requested, here’s the code I use to check the session state:

if (FBSession.activeSession.state == FBSessionStateCreatedTokenLoaded && FBSession.activeSession.isOpen)
 //logged in
else
 //not logged in

[UPDATE 2]

Changed my logic a bit… Altered my original code to:

if (FBSession.activeSession.isOpen)
 //logged in
else
 //not logged in

Because FBSession.activeSession.state was returning FBSessionStateOpen, not FBSessionStateCreatedTokenLoaded.

  • 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-14T15:07:33+00:00Added an answer on June 14, 2026 at 3:07 pm

    Maybe this will help.
    https://developers.facebook.com/bugs/497294866962479?browse=search_507cb8ebc4f025673237228

    I call all these methods together to make sure it is really logout. Crazy bugs.

    [FBSession.activeSession closeAndClearTokenInformation];
    [FBSession.activeSession close];
    [FBSession setActiveSession:nil];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just upgraded from iOS 5.1.1 to 6.0 and the following code path is
I just upgraded Xcode from 4.2 to 4.3.3. I then launches iOS Simulator (with
I just upgraded from SnowLeapord to Lion and now cannot create virtualenvs. I understand
I just upgraded from VS2008 to VS2010. In the process, I allowed it to
I just upgraded from Rails 3.0.3 to 3.2.1. The upgrade went smoothly on my
I just upgraded from tomcat 6.0.29 to 7.0.25 using native apr. Tomcat has crashed
I've just upgraded from MRI-1.8.7 to MRI-1.9.1 and heard about this lighthouse ticket which
A number of our users have just upgraded from IE6 to IE7. the upgreaded
I'm working with a client who has just upgraded from SQL 2000 to SQL
I just upgraded our Hudson from 2.2.0 to 2.2.1 to fix a known bug

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.