문제

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"]);
}
도움이 되었습니까?

해결책

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"]]; 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top