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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:15:07+00:00 2026-05-31T06:15:07+00:00

As the title says, my project will never bring up the FB login screen

  • 0

As the title says, my project will never bring up the FB login screen until I have called

[facebook logout];

This makes sense when I’ve already logged in, but it happens on startup as well (i.e. the user is not yet logged in).

Hmmm…I’ve just tried resetting contents and settings in the simulator, and that seems to have fixed the problem. For my own peace of mind, why when I close the simulator and rerun the project does it not revert to either a state where the app is ‘new’ and hasn’t been run before, or to a resume state – whereby the logged in user info would be available immediately?

On my device I have just tested this:

  • Fresh install
  • Open app, login via FB Connect
  • Close app, remove from running in background apps
  • Reopen app
  • Try to login, no response until I first click logout

So is it somehow retaining the fact that it has logged in before? If so, is there a “loggedInAlready” variable or something similar that I can check against?

  • 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-05-31T06:15:09+00:00Added an answer on May 31, 2026 at 6:15 am

    Added this to didFinishLaunchingWithOptions

    if([facebook isSessionValid])//if already able to log in
    {
        [self loginToFacebook];//attempt to login automatically on startup
    }
    

    Seems to have solved the problem. I guess that because I had:

    if([facebook isSessionValid]){
        [facebook login];
    }
    

    in the login button press, that when it resumed it was still in a valid session and so the button press wouldn’t do anything until the logout button ended the session.
    Now it automatically checks if the session is valid on startup, and if so it logs straight in for me.

    🙂 All’s well that ends well.

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

Sidebar

Related Questions

The title pretty much says it all. I have a project that for political
Title says all. I'll have navigation that looks like this and it's dynamically created
title pretty much says it all. I have a website which will only run
As the Title says, I've got a multi-project solution. I've got a core project
The title says it mostly. If I have an object in Python and want
The title says enough I think. I have a full quality BufferedImage and I
Like the title says, I have the following exception: Description: Event code: 3005 Event
Basically, what the title says. I have several properties that combine together to really
As the title says, I am just a little curious...I have seen some European
As the title says, I want to have a build tool that quite much

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.