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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:28:44+00:00 2026-05-26T06:28:44+00:00

I am using Sharekit for Facebook sharing with the Facebook Graph API. I have

  • 0

I am using Sharekit for Facebook sharing with the Facebook Graph API. I have tried to find the latest, most up to date code (troppoli on github seems pretty up-to-date).

Using sharekit to log out of Twitter works fine with the line: [SHK logoutOfService:@”SHKTwitter”]; but the same line for Facebook, [SHK logoutOfService:@”SHKFacebook”], yields different results.

When I go to log back in, the login screen does not show. Instead, a screen with the text: “You have already authorized … Press okay to continue.” Then at the bottom of the screen, “Logged in as …” and “Log out” . But the user is supposedly already logged out.

Even worse, if I press the “Okay” button to continue on, I get the error: “The operation couldn’t be completed. (NSURLErrorDomain error -999.)

I think I may need to tweak ShareKit to make this work but I hate to do that. Has anyone else come across this?

  • 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-26T06:28:45+00:00Added an answer on May 26, 2026 at 6:28 am

    I’m pretty sure this has something to do with the new Facebook Single-Sign-On (SSO). If the user has Facebook version 3.2.3 or greater installed, or if Safari is on the device (or simulator), authorization now takes place OUTSIDE of the app. Will post more as I find it.

    EDIT: Apart from the NSURL error, it seems that this is the expected behavior with the new Facebook SSO. Users are supposed to remain in a pseudo-logged in/logged out state after ‘logging out’ of your app, in case they are logged into another app, etc. – it’s all connected now. To really log out of facebook (to say, log in as someone else, etc.) it seems that the user needs to click the logout link on the authorization webview that shows when they are “logged out” of facebook in your app. I could be wrong but I’m pretty sure about this.

    Apart from the above, I did find a way to get rid of the NSURL error and this makes things a lot better, and much more palatable. See How Do I Fix NSURLErrorDomain Error -999 in iPhone.

    For more on the new Facebook SSO:

    Excerpt from Facebook iOS Tutorial (see especially last paragraph):

    Step 3: Implementing Single Sign-On (SSO)

    One of the most compelling features of the iOS SDK is Single-Sign-On
    (SSO). SSO lets users sign into your app using their Facebook
    identity. If they are already signed into the Facebook iOS app on
    their device they do not have to even type a username and password.
    Further, because they are signing to your app with their Facebook
    identity, you can get permission from the user to access to their
    profile information and social graph.

    SSO primarily works by redirecting the user to the Facebook app on her
    device. Since the user is already logged into Facebook, they will not
    need to enter their username and password to identify themselves. They
    will see the auth dialog with the permissions that your app has asked
    for and if they allow then they will be redirected to your app with
    the appropriate access_token.

    Developers should be aware that Facebook SSO will behave slightly
    different depending on what is installed on the user’s device. This is
    what happens in certain configurations:

    If the app is running in a version of iOS that supports multitasking,
    and if the device has the Facebook app of version 3.2.3 or greater
    installed, the SDK attempts to open the authorization dialog within
    the Facebook app. After the user grants or declines the authorization,
    the Facebook app redirects back to the calling app, passing the
    authorization token, expiration, and any other parameters the Facebook
    OAuth server may return.

    If the device is running in a version of iOS that supports
    multitasking, but it doesn’t have the Facebook app of version 3.2.3 or
    greater installed, the SDK will open the authorization dialog in
    Safari. After the user grants or revokes the authorization, Safari
    redirects back to the calling app. Similar to the Facebook app based
    authorization, this allows multiple apps to share the same Facebook
    user access_token through the Safari cookie.

    If the app is running a version of iOS that does not support
    multitasking, the SDK uses the old mechanism of popping up an inline
    UIWebView, prompting the user to log in and grant access. The
    FBSessionDelegate is a callback interface that your app should
    implement: The delegate’s methods will be invoked when the app
    successful logs in or logs out. Read the iOS SDK documentation for
    more details on this delegate.

    …

    When the user wants to stop using Facebook integration with your app,
    you can call the logout method to clear the app state and make a
    server request to invalidate the current access_token.

    [facebook logout:self]; You may implement the fbDidLogout method of
    the FBSessionDelegate protocol to handle any post-logout actions you
    wish to take.

    Note that logging out will not revoke your application’s permissions,
    but will simply clear your application’s access_token. If a user that
    has previously logged out of your app returns, they will simply see a
    notification that they are logging into your app, not a notification
    to grant permissions. To modify or revoke an application’s
    permissions, the user can visit the “Applications, Games, and
    Websites” tab of their Facebook privacy settings dashboard. You can
    also revoke an app’s permissions programmatically using a Graph API
    call.

    Hope this helps, let me know if you find anything different.

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

Sidebar

Related Questions

I have written some code to share images on Facebook using Sharekit. The code
I have an app and I am using ShareKit for sharing in Facebook. I
Hello All , I have been using ShareKit for almost all the stuffs regarding
I'm implementing ShareKit in my app; I'm using XCode4 and have downloaded the ShareKit
I integrated facebook app using sharekit by giving the FB Secret key and session
I am using sharekit to share text on facebook, i want to add a
Using Rails 3.2.0.rc2 and ruby 1.9.3p0 In app/views/requests/_form.html.erb I have the following code for
Iam implementing facebook and twitter using sharekit for an iphone app. How can we
I am creating an app for Facebook and twitter integration using sharekit. That works
Well I added and finally got Sharekit to work with facebook using FBConnect, but

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.