Sometimes, when I launch the Facebook sharing dialog, the OS switches to the Facebook application, but the access dialogue does not load. Then, if you try again, it usually works. Why is he not working for the first time?
NSURL* url = [NSURL URLWithString:@"some URL"]; FBShareDialogParams* params = [[FBShareDialogParams alloc] init]; params.link = url; if ([FBDialogs canPresentShareDialogWithParams:params]) { [FBDialogs presentShareDialogWithLink:url handler:^(FBAppCall *call, NSDictionary *results, NSError *error) { if(error) { NSLog(@"Error posting to FB: %@", error.description);
source share