ios - tying to login from facebook sdk earlier it was working fine but now giving error? -


1.tying login facebook sdk earlier working fine giving after login different account giving "domain=com.facebook.sdk.login code=304 " error. below code

- (ibaction)fbloginclick:(id)sender {      if ([appdelegate getappdelegate].internetactive) {            fbsdkloginmanager * login = [[fbsdkloginmanager alloc] init];          [login loginwithreadpermissions:@[@"public_profile", @"email",@"user_birthday",@"user_friends",@"user_posts"] handler:^(fbsdkloginmanagerloginresult *result, nserror *error) {              if (!error)             {                 nsmutablearray *grantedpermission = (nsmutablearray *)result.grantedpermissions;                 if(![grantedpermission containsobject:@"public_profile"] || ![grantedpermission containsobject:@"email"] || ![grantedpermission containsobject:@"user_birthday"] || ![grantedpermission containsobject:@"user_friends"] || ![grantedpermission containsobject:@"user_posts"])                 {                      [login loginwithreadpermissions:@[@"public_profile", @"email",@"user_birthday",@"user_friends",@"user_posts"] handler:^(fbsdkloginmanagerloginresult *result, nserror *error)                      {                          if(result.token)                          {                              [self getfacebookprofileinfos];                          }                       }];                  }                 else                 {                     [self getfacebookprofileinfos];                 }                 // there error here.              }           }];       } else {      uialertview *alert=[[uialertview alloc] initwithtitle:@"internet connection" message:@"please check internet connection" delegate:self cancelbuttontitle:@"ok" otherbuttontitles:nil, nil];     [alert show]; } } </i> 

any appreciable. thank you.

you try code solve problem

you access token logout session.

fbsdkloginmanager *logmeout = [[fbsdkloginmanager alloc] init]; [logmeout logout]; 

in case accesstokens logout fb session.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -