IOS Facebook Share Dial never works for the first time

For some reason, my general dialogue with Facebook never works the first time - a dialog opens and then disappears, and I get the following error:

Error Domain=NSURLErrorDomain Code=-999 "The operation couldn't be completed. (NSURLErrorDomain error -999.)" 

A URL that does not match this error is the standard dialog URL, and if I paste it into my web browser, it displays a sharing dialog. I'm not doing anything special, just calling:

 [_facebook dialog:@"feed" andParams:params andDelegate:self]; 

When I call this method again, it works fine.

Anyone else come across this? This is on iOS 5 and I am using the latest version of the SDK.

+4
source share
1 answer

Duplicate The first dialog after authentication immediately closes and closes the dialog

The short answer seems to have appeared in iOS 5. There are several kinds of nasty workarounds. Good luck

+1
source

Source: https://habr.com/ru/post/1380289/


All Articles