ios - How to get verified status of Facebook user in Facebook sdk v3.12 -
i trying access verified status of logged in user.below code have tried faar.i getting verified value null when login using code.is there other permission need add in order access verified status? greatfull.
login
fbloginview *loginview =[[fbloginview alloc] initwithreadpermissions:@[@"basic_info", @"email", @"user_birthday",@"user_location"]]; loginview.delegate=self; [self.view addsubview:loginview];
login delgate method
- (void)loginviewfetcheduserinfo:(fbloginview *)loginview user:(id<fbgraphuser>)user { nslog(@"userinfo %@",[user objectforkey:@"verified"]); }
finally got it.it "user_status" permission had add in order verified status.
fbloginview *loginview =[[fbloginview alloc] initwithreadpermissions:@[@"basic_info", @"email", @"user_birthday",@"user_location",@"user_status"]];
Comments
Post a Comment