First dialog after authenticating fails immediately and closes dialog

前端 未结 6 1937
庸人自扰
庸人自扰 2020-11-30 06:40

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:

NSString *app         


        
6条回答
  •  Happy的楠姐
    2020-11-30 07:20

    Until facebook patch their SDK, I did'nt find any better solution than this one :

    - (void)dialog:(FBDialog *)dialog didFailWithError:(NSError *)error{
    
        if([error code] == -999){
            DLog(@"Error -999 found re-open webview");
    
            [facebook dialog:@"apprequests"
                   andParams:_dialogParams
                 andDelegate:self];
    
        }else{
            DLog(@"Error opening facebook dialog : %@", [error description]);
        }
    }
    

提交回复
热议问题