For some reason, my Facebook share dialog never works the first time—the dialog window opens up and then disappears, and I get the following error:
Error Domain=NSURLErrorDomain Code=-999 "The operation couldn’t be completed. (NSURLErrorDomain error -999.)"
The URL that is failing with the error is a standard dialog URL, and if I paste it in my web browser, it displays the share dialog. I'm not doing anything special, just calling:
[_facebook dialog:@"feed" andParams:params andDelegate:self];
When I call that method again, it works perfectly.
Anyone else running into this? This is on iOS 5, and I'm using the newest version of the SDK.