尝试使用 Fabric Twitter SDK 获取 Twitter 用户的电子邮件地址时显示 "Your application may not have access to email addresses"
Showing "Your application may not have access to email addresses" when try to get email address of twitter user using Fabric Twitter SDK
我想请求用户的 Twitter 邮件。在 https://dev.twitter.com/twitter-kit/ios/request-email
代码是:
if ([[Twitter sharedInstance] session]) {
TWTRShareEmailViewController* shareEmailViewController =
[[TWTRShareEmailViewController alloc]
initWithCompletion:^(NSString* email, NSError* error) {
if (error)
{
NSLog(@"Error %@",error.localizedDescription);
}else
{
NSLog(@"Email %@",email);
}
}];
[self presentViewController:shareEmailViewController
animated:YES
completion:nil];
}
使用此 link https://support.twitter.com/forms/platform 提交请求,要求您的应用获得用户电子邮件地址的授权。选择其中一个选项并填写所有信息。
获得许可后的示例如下:
检查这个 URL : https://apps.twitter.com/app/APP_ID/permissions
我想请求用户的 Twitter 邮件。在 https://dev.twitter.com/twitter-kit/ios/request-email
代码是:
if ([[Twitter sharedInstance] session]) {
TWTRShareEmailViewController* shareEmailViewController =
[[TWTRShareEmailViewController alloc]
initWithCompletion:^(NSString* email, NSError* error) {
if (error)
{
NSLog(@"Error %@",error.localizedDescription);
}else
{
NSLog(@"Email %@",email);
}
}];
[self presentViewController:shareEmailViewController
animated:YES
completion:nil];
}
使用此 link https://support.twitter.com/forms/platform 提交请求,要求您的应用获得用户电子邮件地址的授权。选择其中一个选项并填写所有信息。
获得许可后的示例如下: 检查这个 URL : https://apps.twitter.com/app/APP_ID/permissions