iOS App crashes on facebook sdk login button -


i have facebook login button on main screen. can log in , log out using button many times want, , work fine. on layer, there button share score on facebook. there 2 cases: case1 if logged in, shares score. , case2 if not logged in, tells user need log in. share button code:

[fbrequestconnection startforpoststatusupdate:message                             completionhandler:^(fbrequestconnection *connection, id result, nserror *error) {                                     uialertview *alert;                                 nslog(@"%@",error);                                 if (!error)                                 {                                     alert = [[uialertview alloc] initwithtitle:@"you score" message:@"has been published" delegate:self cancelbuttontitle:@"ok" otherbuttontitles: nil];                                 }                                 else{                                     alert = [[uialertview alloc] initwithtitle:@"login failed" message:@"please login facebook account" delegate:self cancelbuttontitle:@"ok" otherbuttontitles: nil];                                 }                                  [alert show];                                 [alert release]; 

all works expected, if come main screen facebook login button present case2 described above, if click login button, facebook page of permissions open. when click okay, app crashes. goes delegate method loginviewshowingloggedinuser before going delegate method loginviewfetcheduserinfo, crashes. can reason it?


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -