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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:58:15+00:00 2026-05-29T04:58:15+00:00

I am using the facebook api for ios and i am using facebook dialogs

  • 0

I am using the facebook api for ios and i am using facebook dialogs to post.

The basic idea is that i have a button to post that calls a method and ask if you are logged in to post right away or to perform the log in and then post. When the second scenario occurs i can’t post right after log in to facebook so i have to tap the button and call the method again so i can post.

The error that facebook sends me says:
The operation couldn’t be completed. (NSURLErrorDomain error -999.)

I have read here in stack about it and it says:

According to “Foundation Constants Reference”, error code -999 means “NSURLErrorCancelled”.

Description:

Returned when an asynchronous load is canceled. A Web Kit framework delegate will receive this error when it performs a cancel operation on a loading resource. Note that an NSURLConnection or NSURLDownload delegate will not receive this error if the download is canceled. Available in iOS 2.0 and later. Declared in NSURLError.h.

The question is why facebook is sending me this and how can i solve it?

If more code is necessary i can put it.

Thanks in advance.

  • 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-29T04:58:17+00:00Added an answer on May 29, 2026 at 4:58 am

    The way I fixed this was I changed FBDialog.m to ignore error code -999 like this

    - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
    // 102 == WebKitErrorFrameLoadInterruptedByPolicyChange
    NSLog(@"FBDialog webView didFailLoadWithError:%@ %d",error.domain,error.code);
    if ([error.domain isEqualToString:@"NSURLErrorDomain"] && error.code == -999)
        return;
    
    if ([error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 102)
        return;
    
    [self dismissWithError:error animated:YES];
    }
    

    What’s interesting is that FBLoginDialog was already ignoring both error code 102 and -999 whereas FBDialog was only ignoring 102. See for yourself: https://github.com/facebook/facebook-ios-sdk/blob/master/src/FBLoginDialog.m#L85

    I don’t know if this is the best solution, but I feel slightly more confident about it since another piece of the Facebook sdk code already ignores the same error.

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

Sidebar

Related Questions

I'm trying to post a Facebook status update, using the Facebook iOS API, with
Using facebook API, in my iOS, i want to post a PDF. I successfully
I understand that using the facebook API I need an api key to connect,
I am developing app using facebook API. When I push 'login' button from my
Can I upload photos using Facebook API but not post to wall in Facebook?
I'm using Facebook API v5.3 BETA, although have tried the following using v5.2.1 Stable.
I have a mobile application that I'm using with Facebook connect. I'm having trouble
I have been using facebook api for a time, but recently there is a
I'm using the Facebook API Graph (C# & ASP.NET) to try to dynamically post
I'm using the iOS facebook DemoApp example to post to my profile. It works

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.