{"comment":{"created_at":"2011-10-12T19:23:20Z","body":"I am getting the same issue.  I realised that the first time a request is sent to FB to authenticate, for some reason the browser returns an error and fails in the following delegate method of webView:\r\n\r\n- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {\r\n  // 102 == WebKitErrorFrameLoadInterruptedByPolicyChange\r\n    if (!([error.domain isEqualToString:@\"WebKitErrorDomain\"] && error.code == 102)) \r\n    {\r\n           [self dismissWithError:error animated:YES];\r\n    }\r\n}\r\n\r\nafter doing a bit of research on error WebKitErrorFrameLoadInterruptedByPolicyChange i came accross the github page for facebook iosSDK (https://github.com/facebook/facebook-ios-sdk/issues/96) that suggested that the error is due to a previously cancelled request and should be ignored so with the following mods it works:\r\n\r\n- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {\r\n  // 102 == WebKitErrorFrameLoadInterruptedByPolicyChange\r\n    if (!([error.domain isEqualToString:@\"WebKitErrorDomain\"] && error.code == 102)) \r\n    {\r\n        if (!(([error.domain isEqualToString:@\"NSURLErrorDomain\"] && error.code == -999) ||\r\n            ([error.domain isEqualToString:@\"WebKitErrorDomain\"] && error.code == 102))) \r\n        {\r\n            [self dismissWithError:error animated:YES];\r\n        }\r\n    }\r\n}\r\n\r\nNote that the latest version of FBDialog.m in facebook-ios-sdk no longer has the added conditions.  Can anyone shine some light on why this fails?\r\n\r\nThanks!","updated_at":"2011-10-12T19:23:20Z","url":"https://api.github.com/repos/ShareKit/ShareKit/issues/comments/2383297","id":2383297,"user":{"avatar_url":"https://secure.gravatar.com/avatar/b09c74850632ce62d7a1841f8f98eb18?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/MinerP","id":1123433,"login":"MinerP"}},"action":"created","issue":{"number":56,"created_at":"2011-10-12T15:15:46Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hi,\r\n\r\nI get this error (in my app and in exemple app), when I try to share an URL for the first time after a fresh install on my device.\r\nI am already authenticated from Facebook app. This error occurs since yesterday.\r\n\r\nDo you have this same issue?\r\n\r\nThanks\r\nThierry\r\n\r\nHere is the error log :\r\n\r\nError Domain=NSURLErrorDomain Code=-999 \"The operation couldn\\u2019t be completed. (NSURLErrorDomain error -999.)\" UserInfo=0x990ce80 {NSErrorFailingURLKey=https://m.facebook.com/dialog/feed?link=http%3A%2F%2Fitunes.apple.com%2Fca%2Fapp%2F101.9-rxp-ny-rock-experience%2Fid389219104%3Fl%3Dfr%26mt%3D8&access_token=BAABrxKNYAiMCAEUWDC9DhoK71AWjR0nubGrH1yvRBSzcZBySUibqOmywZBwtS1PDIBaAJJGbZBqSpfwwUy0in9umJbTBuKe4jkSuaE24ZChvV6RD3zCPcsFM6c84DwoZD&actions=%7B%22name%22%3A%22Get%20My%20App%20Name%22%2C%22link%22%3A%22http%3A%2F%2Fapple.com%22%7D&name=Je%20viens%20de%20d%C3%A9couvrir%20cette%20application%20pour%20mon%20iPhone&picture=http%3A%2F%2Fmobileapps.media.streamtheworld.com%2Fiphone%2Ffiles%2FFacebook-AppStore%2FApplicationsLogos%2F1019RXP.png&app_id=118492298215971&redirect_uri=fbconnect%3A%2F%2Fsuccess&sdk=2&display=touch, NSErrorFailingURLStringKey=https://m.facebook.com/dialog/feed?link=http%3A%2F%2Fitunes.apple.com%2Fca%2Fapp%2F101.9-rxp-ny-rock-experience%2Fid389219104%3Fl%3Dfr%26mt%3D8&access_token=BAABrxKNYAiMCAEUWDC9DhoK71AWjR0nubGrH1yvRBSzcZBySUibqOmywZBwtS1PDIBaAJJGbZBqSpfwwUy0in9umJbTBuKe4jkSuaE24ZChvV6RD3zCPcsFM6c84DwoZD&actions=%7B%22name%22%3A%22Get%20My%20App%20Name%22%2C%22link%22%3A%22http%3A%2F%2Fapple.com%22%7D&name=Je%20viens%20de%20d%C3%A9couvrir%20cette%20application%20pour%20mon%20iPhone&picture=http%3A%2F%2Fmobileapps.media.streamtheworld.com%2Fiphone%2Ffiles%2FFacebook-AppStore%2FApplicationsLogos%2F1019RXP.png&app_id=118492298215971&redirect_uri=fbconnect%3A%2F%2Fsuccess&sdk=2&display=touch}\r\n\r\nWhat is strange is when I copy / paste url the posting works.","comments":2,"title":"The operation couldn't be completed. (NSURLErrorDomain error -999) when sharing on FB after fresh install","updated_at":"2011-10-12T19:23:20Z","url":"https://api.github.com/repos/ShareKit/ShareKit/issues/56","id":1888360,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/a710e236ca917e28d122d21d9e835d5c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/thierryb","id":460979,"login":"thierryb"},"html_url":"https://github.com/ShareKit/ShareKit/issues/56","labels":[],"state":"open"},"legacy":{"issue_id":1888360,"comment_id":2383297}}