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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:26:07+00:00 2026-05-12T22:26:07+00:00

I am using Facebook Connect for iPhone and following the official instructions . I

  • 0

I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog:

FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:session] autorelease];
[dialog show];

(Note that the results are the same when I go with the FBLoginButton approach instead of showing the dialog directly.)

The dialog pops up as expected, but as you see in the screenshot below, it is way too large and looks like the full Facebook homepage. I can pan the dialog to reveal the login button, but once I log in it proceeds to show the regular Facebook page inside the dialog. It never calls my session:didLogin callback.

Is there something I’m doing wrong?

alt text http://img.skitch.com/20091115-t24w7p5gpa6iqgehjdc4f1awfs.jpg

  • 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-12T22:26:08+00:00Added an answer on May 12, 2026 at 10:26 pm

    I finally figured it out… I was initializing the FBSession inside my app delegate’s applicationDidFinishLaunching method. I then triggered the Facebook login code in my view controller’s viewDidAppear.

    However, applicationDidFinishLaunching looked like this:

    - (void)applicationDidFinishLaunching:(UIApplication *)application {    
        [window addSubview:viewController.view];
        [window makeKeyAndVisible];
    
        self.session = [FBSession sessionForApplication:FB_API_KEY secret:FB_APP_SECRET delegate:self];
    }
    

    This means that I was showing the window before I was initializing the FBSession, and apparently a nil session leads to the behavior I described above. After changing applicationDidFinishLaunching to create the FBSession first, everything now works as expected. Doh… 😉

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

Sidebar

Related Questions

I'm using the Facebook Connect for iPhone SDK at http://github.com/facebook/facebook-iphone-sdk/ and am trying to
I'm using facebook connect to allow the visitors login to a website using their
I have implemented Facebook connect on my iPhone App to login users to my
I'm using the latest facebook iOS SDK (supporting SSO) to connect my iPhone app
I'm using facebook connect to let users login my application easy. It works well,
I'm writing an iPhone app that's using Facebook Connect. While testing, you normally embed
When using Facebook Connect via the javascript library, I get the following javascript error.
I am using OAuth for twitter and fb-connect for facebook authentication in my iPhone
I am using FacebookConnect on the iPhone to integrate my app with Facebook. Unfortunatly
I am using Facebook connect and JS client library to retrieve my photos in

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.