0
Twitter用戶的回覆我有在發佈回覆到一個特定的狀態ID
這裏麻煩
是我的驗證碼
twitterWithReply = [STTwitterAPI twitterAPIOSWithFirstAccount];
[twitterWithReply verifyCredentialsWithSuccessBlock:^(NSString *username) {
NSLog(@"Login Successful");
self.replyTextField.enabled = YES;
}
errorBlock:^(NSError *error){
UIAlertView *alertView = [[UIAlertView alloc]
initWithTitle:@"Sorry"
message:@"You can't send a tweet right now, make sure your device has an internet connection and you have at least one Twitter account setup"
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alertView show];
}];
這是我的代碼張貼回覆
NSLog(@"the text content%@",self.replyTextField.text);
[self.replyTextField resignFirstResponder];
if (self.replyTextField.text.length>0 && self.replyTextField.text.length <=140) {
// Post reply
[twitterWithReply postStatusUpdate:self.replyTextField.text inReplyToStatusID:self.tweeetID latitude:nil longitude:nil placeID:nil displayCoordinates:nil trimUser:nil successBlock:^(NSDictionary *status) {
[self showSuccessDialog];
} errorBlock:^(NSError *error) {
NSLog(@"%@",[error localizedDescription]);
}];
}
目前它所做的是發佈到我自己的時間表而不是回覆特定的推文。我的印象是我的驗證碼錯誤。那麼我如何認證呢?
你得到一個錯誤?如果是這樣,它說什麼? 另外,嘗試記錄tweetID並確保它是正確的。 – nst
我沒有收到錯誤。它只是發佈到我自己的時間表中,而不是回覆特定的推文。我檢查了tweetID,我認爲這是正確的,我使用從 得到的狀態id_str參數[twitter getUserTimelineWithScreenName:twitterName successBlock:^(NSArray * status) –