My app have whitelist by twitter .Privacy Policy URL and Terms of Service URL has set ,“Request email addresses from users” checkbox also set ,and regenerate the user access tokens But i also can,t get email address.The code as below:
TWTRAPIClient *client = [TWTRAPIClient clientWithCurrentUser];
[client requestEmailForCurrentUser:^(NSString * _Nullable email, NSError * _Nullable error) {
DBLog(@"the email is %@ %@",email,error);
}];
NSURLRequest *request = [client URLRequestWithMethod:@"GET"
URL:@"https://api.twitter.com/1.1/account/verify_credentials.json"
parameters:@{@"include_email": @"true"}
error:nil];
[client sendTwitterRequest:request completion:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableLeaves error:nil];
}];
And this no email feed back ,if i use
[client requestEmailForCurrentUser:^(NSString * _Nullable email, NSError * _Nullable error) {
DBLog(@"the email is %@ %@",email,error);
}]
i will get
Error Domain=TWTRErrorDomain Code=3 "This user does not have an email address"
But my twitter account is created by my email.
so please help help help!!!