Question

I am trying to access the verified status of the logged in user.Below is the code which is have tried so faar.I am getting verified value as null when i login using this code.Is there any other permission which i need to add in order to access verified status? Any help will be 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"]);
}
Was it helpful?

Solution

Finally got it.It was the "user_status" permission which i had to add in order to get the verified status.

FBLoginView *loginView =[[FBLoginView alloc] initWithReadPermissions:@[@"basic_info", @"email", @"user_birthday",@"user_location",@"user_status"]]; 
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top