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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:47:41+00:00 2026-06-12T15:47:41+00:00

In my iPhone app, I want the user to be able to share a

  • 0

In my iPhone app, I want the user to be able to share a link on Facebook.

When they click “share”, I use the following code to login to Facebook using the new SDK 3.1, then use FBRequestConnection in the completion handler (a simple publish_action).

[FBSession openActiveSessionWithPublishPermissions:@[@"publish_actions"] defaultAudience:FBSessionDefaultAudienceFriends allowLoginUI:true completionHandler:^(FBSession *session, FBSessionState status, NSError *error) {

    // Now call FBRequestConnection to post in the stream

}];

When the user has the Facebook app installed, it just delegates the login to the app. However when they don’t, it opens the login page in a WebView.

In iOS 5, it opens Mobile Safari:

enter image description here

My problem is on iOS 6, I get the same flow but in a modal popup instead (on top of my app).

enter image description here

I have 2 issues with the popup:

1. Closing it

It cannot be cancelled or dismissed. In comparison, the HelloFacebookSample app from the SDK has the same popup but with a cross button to close it.

enter image description here

NOTE: now solved thanks to ravi, I was missing the Facebook resource bundle which contains the “close” image.

2. Accepting the permissions

On the second step of the popup (see screens above), pressing Okay doesn’t do anything. Pressing the “X” calls the completion handler with an error, which is great, but nothing happens with Okay. Is this the right way to login to Facebook with the SDK 3.1? Am I missing a callback to react to the popup specifically?

Some more clarifications:

This only happens in iOS6 when the Facebook app is not
installed
and the Facebook account is not configured in the iOS
settings.

Thanks!

  • 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-12T15:47:43+00:00Added an answer on June 12, 2026 at 3:47 pm

    I can’t comment as my reputation is less than 50, so trying to point out my observations as answer.

    I too noticed this problem when using Facebook sdk3.1 on ios6. In my case I’m using the old style facebook object creation and call [facebook authorize:permissions] on it, but I modified the source code to always use “FBSessionLoginBehaviorForcingWebView” so that my login is always through in-app web login.

    In my case I was missing FBUserSettingsViewResources.bundle and FacebookSDKResources.bundle, so I was unable to see the cross button (but I was able to tap on that spot and getting call back - (void)fbDidNotLogin:(BOOL)cancelled {) .

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

Sidebar

Related Questions

I want to create an iPhone app with following features: User should be able
In my iPhone app, I want the user to be able to take a
I've building a very basic iphone app where the user will be able to
I'm writing a data collection app for the iPhone, and want to be able
I'm working on a Mac app and I want the user to be able
I am working on an iphone game app. I dont want to use core
My requirement is: I want the app user to be able to scan a
In my iPhone App I want to implemented functionality as shown below user can
I have an iphone app i want that befor moving to next screen it
I'm working on an iphone app and want to have a page showing multiple

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.