2015-10-16 88 views
0

我的應用程序是白名單,並且我正在獲得訪問權限中的電子郵件ID選項。我使用下面的代碼,我仍然在電子郵件中獲得零。Twitter在iOS中白名單後不返回電子郵件ID

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

如果列入白名單,仍然沒有得到郵件,你可能有織物和Twitter不同的消費API密鑰和消費者祕密密鑰。請按照下列步驟操作:

  1. 轉到Twitter的應用程序設置中的密鑰和訪問令牌。
  2. 從那裏複製白名單密鑰,消費者API和消費者密鑰。
  3. 轉到Xcode中的plist文件,並將其替換爲plist中的織物。
相關問題