How can I get my application on Twitter to get the user's email address?

I am developing an iOS application and want to ask the user to share their email address. I used the twitter tweet structure to authenticate the user. This part of my application was successful. Now I want to request the user's email. I referred to the Twitter developers documentation that said I was visiting the form to get information in order to get my application whitelisted. In this form, I could not find an option to request users email.

So, I need some guidance for the process of achieving this. Twitter was supposed to provide direct information about this.

Thanks in advance!

+4
source share
3 answers

Finally, after a long conversation with sdk-feedback@twitter.com, I got my application on the white list. Here is the story:

  • Send an email to sdk-feedback@twitter.comwith some details about your application, for example, in the section "Consumer Key", in the application "Application Store", "Link to Privacy Policy", "Metadata", "Instructions for logging into our application". Indicate in the mail that you want to access the user's email in your application.

  • They will review your application and respond to you within 2-3 business days.

  • , , Twitter. apps.twitter.com :

    • "" URL-
    • "" . , .

:

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

, !!!

+8

, , Twitter .

+1

Once your application is whitelisted, you may need to regenerate the access token at https://apps.twitter.com . And also use https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true to get the user's email address! It worked for me

+1
source

Source: https://habr.com/ru/post/1588995/


All Articles