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

  • Home
  • SEARCH
  • 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 8393697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:52:05+00:00 2026-06-09T19:52:05+00:00

I am not exactly sure what is going wrong. I implemented everything specified by

  • 0

I am not exactly sure what is going wrong. I implemented everything specified by developers.Facebook.com to authenticate Facebook login in my iOS application. Here is what I believe is relevant to the problem:

The application I am making is a tabbed application with a navigation controller.

I get a warning for the following code (provided by Facebook developers page):

- (IBAction)authButtonAction:(id)sender {
    AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
    // The user has initiated a login, so call the openSession method
    // and show the login UX if necessary.
    [appDelegate openSessionWithAllowLoginUI:YES];
}

The warning is:
Initializing ‘AppDelegate *’ with an expression of incompatible type ‘id< UIApplicationDelegate>’

When I click the authButton, the Facebook app on my iPhone opens and the appropriate message is presented to the user about granting my application access to post status updates. BUT…the control flow is never given back to my application and the Facebook application is left open. I believe this has to do with the above warning.

  • 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-09T19:52:06+00:00Added an answer on June 9, 2026 at 7:52 pm

    Try this:

    AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not exactly sure what is going on here so I am hoping one of
Not exactly sure how to look this up, but I'm not finding the solution
I am not exactly sure what's happening here - I open a terminal window
Note: I am not exactly sure what to name the question, so if someone
The question title is a bit strange because I'm not exactly sure how to
Forgive my verbosity. I'm not exactly sure how to describe my situation. Given the
I was just wondering this the other day. I am not exactly sure how
Not sure exactly what I need to do to make this work, so my
I'm not sure exactly how to describe what I want to do, so I'll
I'm not sure exactly how to explain this, so I'll just start with an

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.