2015-04-02 123 views
3

我想請求用戶的Twitter郵件。在https://dev.twitter.com/twitter-kit/ios/request-email嘗試使用Fabric Twitter SDK獲取Twitter用戶的電子郵件地址時,顯示「您的應用程序可能無法訪問電子郵件地址」

代碼是:

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]; 
} 
+0

所有你所做的是複製和過去的從Twitter的文檔,示例代碼。您的應用程序是否已被列入白名單,因爲您鏈接的頁面表示您的應用程序必須被白名單以獲取此信息。你有什麼嘗試?你得到了什麼結果? – DWRoelands 2015-04-06 13:39:13

+0

我面臨同樣的問題。你是否從twitter獲得了電子郵件? – 2015-10-21 18:54:08

+0

不,我沒有收到任何來自twitter的電子郵件! – Elangovan 2015-10-23 05:16:56

回答

6

使用這個鏈接https://support.twitter.com/forms/platform提交的請求被授予用戶的電子郵件地址,你的應用程序。選擇任何一個選項並填寫所有信息。

這裏的例子中,你得到許可後:此網址 檢查:https://apps.twitter.com/app/APP_ID/permissions

enter image description here

+1

我已經嘗試過「我有關於Twitter API的技術問題」,但我不會收到任何回覆。 – Elangovan 2015-04-08 05:18:40

+0

您的未決案件將顯示在網絡上我們的面料帳戶的儀表板上。 – Bejibun 2015-04-08 15:10:39

相關問題