Twitter 列入白名单的 ios 应用程序仍未收到用户的电子邮件

问题描述:

我的 iOS 应用已被 Twitter 列入白名单,但我仍未收到用户的电子邮件.

I have had my iOS app whitelisted by Twitter but I am still not getting email of user.

我还需要做什么才能获得电子邮件 ID?

What else do I need to do to get email id?

我阅读了 https://dev.twitter.com/rest/reference/get/account/verify_credentials 但是,它在 iOS 应用中用于 Twitter 集成有用吗?

I read https://dev.twitter.com/rest/reference/get/account/verify_credentials but, is it useful in iOS app for Twitter integration?

出现以下错误:

Error Domain=TwitterAPIErrorDomain Code=37您的应用程序可能无法访问电子邮件地址,或者用户可能没有电子邮件地址.要请求访问权限,请访问 https://support.twitter.com/forms/platform."UserInfo=0x7fa3cb9e0df0 {NSLocalizedDescription=您的应用程序可能无法访问电子邮件地址,或者用户可能没有电子邮件地址.要请求访问权限,请访问 https://support.twitter.com/forms/platform.}

Error Domain=TwitterAPIErrorDomain Code=37 "Your application may not have access to email addresses or the user may not have an email address. To request access, please visit https://support.twitter.com/forms/platform." UserInfo=0x7fa3cb9e0df0 {NSLocalizedDescription=Your application may not have access to email addresses or the user may not have an email address. To request access, please visit https://support.twitter.com/forms/platform.}

这是我的代码:

-(void)requestUserEmail
{
    if ([[Twitter sharedInstance] session]) {

        TWTRShareEmailViewController *shareEmailViewController =
        [[TWTRShareEmailViewController alloc]
         initWithCompletion:^(NSString *email, NSError *error) {
             NSLog(@"Email %@ | Error: %@", email, error);
         }];

        [self presentViewController:shareEmailViewController
                           animated:YES
                         completion:nil];
    }  
}

在与 Twitter 支持团队交谈后,他们建议:

after a conversation with Twitter support team, they recommend to:

做一个干净的项目"以确保所有缓存的信息都消失了.

还要确保您为特定的白名单应用使用了正确的密钥

Also make sure you are using the right keys for the specific whitelisted App