Note that there are some explanatory texts on larger screens.

plurals
  1. POFirst dialog after authenticating fails immediately and closes dialog
    text
    copied!<p>I'm using the latest Facebook SDK on iOS 5. I can use SSO to successfully authenticate the user, and then I attempt to share a link like this:</p> <pre><code>NSString *appId = [[[NSBundle mainBundle] infoDictionary] objectForKey:TSFacebookAppID]; NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: appId, @"app_id", [url absoluteString], @"link title, @"caption", body, @"description", nil]; [facebook dialog:@"feed" andParams:params andDelegate:self]; </code></pre> <p>The first time I attempt this, the dialog appears and immediately closes, calling the dialog:didFailWithError:error delegate method. The error is:</p> <blockquote> <p>Error Domain=NSURLErrorDomain Code=-999 "The operation couldn’t be completed. (NSURLErrorDomain error -999.)" UserInfo=0x98f2ab0 {NSErrorFailingURLKey=<a href="https://m.facebook.com/dialog/feed?link=http%3A%2F%2Fwww.thescore.com%2Fhome%2Farticles%2F184248&amp;description=Nadal%20pulls%20out%20of%20Paris%20to%20focus%20on%20ATP%20finals&amp;access_token=BAABw00HZB06cBALT57lZCM24N4EOtPpOQeCgl7oLUvbHFR0ZAlwgAbPHQ7HANmlBE0aUKVNDmWNYsEqB0wXq28vm4D18T5hLTVDK3x2WjnVjgIVl75RPoOszSB21f4ZD&amp;caption=Article%20from%20ScoreMobile%20for%20iPhone&amp;app_id=124052647629735&amp;redirect_uri=fbconnect%3A%2F%2Fsuccess&amp;sdk=2&amp;display=touch" rel="nofollow">https://m.facebook.com/dialog/feed?link=http%3A%2F%2Fwww.thescore.com%2Fhome%2Farticles%2F184248&amp;description=Nadal%20pulls%20out%20of%20Paris%20to%20focus%20on%20ATP%20finals&amp;access_token=BAABw00HZB06cBALT57lZCM24N4EOtPpOQeCgl7oLUvbHFR0ZAlwgAbPHQ7HANmlBE0aUKVNDmWNYsEqB0wXq28vm4D18T5hLTVDK3x2WjnVjgIVl75RPoOszSB21f4ZD&amp;caption=Article%20from%20ScoreMobile%20for%20iPhone&amp;app_id=124052647629735&amp;redirect_uri=fbconnect%3A%2F%2Fsuccess&amp;sdk=2&amp;display=touch</a>, NSErrorFailingURLStringKey=<a href="https://m.facebook.com/dialog/feed?link=http%3A%2F%2Fwww.thescore.com%2Fhome%2Farticles%2F184248&amp;description=Nadal%20pulls%20out%20of%20Paris%20to%20focus%20on%20ATP%20finals&amp;access_token=BAABw00HZB06cBALT57lZCM24N4EOtPpOQeCgl7oLUvbHFR0ZAlwgAbPHQ7HANmlBE0aUKVNDmWNYsEqB0wXq28vm4D18T5hLTVDK3x2WjnVjgIVl75RPoOszSB21f4ZD&amp;caption=Article%20from%20ScoreMobile%20for%20iPhone&amp;app_id=124052647629735&amp;redirect_uri=fbconnect%3A%2F%2Fsuccess&amp;sdk=2&amp;display=touch" rel="nofollow">https://m.facebook.com/dialog/feed?link=http%3A%2F%2Fwww.thescore.com%2Fhome%2Farticles%2F184248&amp;description=Nadal%20pulls%20out%20of%20Paris%20to%20focus%20on%20ATP%20finals&amp;access_token=BAABw00HZB06cBALT57lZCM24N4EOtPpOQeCgl7oLUvbHFR0ZAlwgAbPHQ7HANmlBE0aUKVNDmWNYsEqB0wXq28vm4D18T5hLTVDK3x2WjnVjgIVl75RPoOszSB21f4ZD&amp;caption=Article%20from%20ScoreMobile%20for%20iPhone&amp;app_id=124052647629735&amp;redirect_uri=fbconnect%3A%2F%2Fsuccess&amp;sdk=2&amp;display=touch</a>}</p> </blockquote> <p>However, subsequent attempts to share the link work fine.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload