【问题标题】:Still not getting the email from fabric for twitter仍然没有收到来自 Fabric 的 Twitter 电子邮件
【发布时间】:2016-02-05 20:06:52
【问题描述】:

我提交了我的 Twitter 审核申请。他们列入了白名单,今天早上我收到了一封邮件。我提供了隐私 URL 和条款和条件 URL。检查来自用户框的请求电子邮件(权限选项卡)。但我仍然没有得到邮件ID。请帮忙。。

    2015-11-05 10:14:32.260 Que Pics[1914:28034] Email (null), Error: 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={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.}
2015-11-05 10:14:47.699 Que Pics[1914:28034] Email (null), Error: Error Domain=TWTRErrorDomain Code=2 "The user chose not to share their email address at this time." UserInfo={NSLocalizedDescription=The user chose not to share their email address at this time.}
2015-11-05 10:15:16.713 Que Pics[1914:28034] signed in as AbbieVys
2015-11-05 10:15:18.350 Que Pics[1914:28034] Email (null), Error: 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={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.}
2015-11-05 10:15:19.695

这是为什么?为什么这么幼稚的从面料操作???

 - (IBAction)twitterButtonAction:(id)sender {

    [[Twitter sharedInstance] logInWithCompletion:^
     (TWTRSession *session, NSError *error) {
         if (session) {
             NSLog(@"signed in as %@", [session userName]);
             [self userEmailIDTwitter];
             [[QPCommonClass initializeUserDefaults]setObject:[session userName] forKey:@"USER_ID"];
             [self pushToCategoryViewController];
         } else {
             NSLog(@"error: %@", [error localizedDescription]);
         }
     }];


}



   -(void)userEmailIDTwitter
{
    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];
    } else {
        // TODO: Handle user not signed in (e.g. attempt to log in or show an alert)
    }

【问题讨论】:

  • 这不是关于编程的吗?
  • 不!!!!让我发布代码
  • @DaniellaD'Cruz 这确实需要您通过 Twitter 解决。我不相信任何人可以在这里为您提供帮助,因为错误完全取决于 Twitter。
  • @DaniellaD'Cruz 此外,如果您的应用被列入电子邮件访问白名单,您应该会在 apps.twitter.com 的应用程序管理权限下看到需要选择的单独权限。

标签: ios objective-c email twitter twitter-fabric


【解决方案1】:

Fabric 团队帮助我们解决了这个问题。我们应用的 info.plist 有不正确的消费者密钥。当你第一次设置 Fabric 时,它会在你的 info.plist 中放置一个消费者密钥。当您设置 TwitterKit 时,您需要将该密钥替换为您的 Twitter 应用程序的使用者密钥。这为我们解决了问题。谢谢

【讨论】:

  • 希望这对我未来的项目有所帮助
猜你喜欢
  • 2018-02-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-12-04
  • 1970-01-01
  • 1970-01-01
  • 2015-09-27
  • 2015-07-17
相关资源
最近更新 更多