我提交了我的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)
}
答案 0 :(得分:2)
Fabric团队帮助我们解决了这个问题。我们的应用程序的info.plist有不正确的消费者密钥。当您第一次设置Fabric时,它会在您的info.plist中放置一个使用者密钥。设置TwitterKit时,需要将该密钥替换为Twitter应用程序的使用者密钥。这解决了我们的问题。感谢