我的hve從源頭https://github.com/kimptoc/MGTwitterEngine-1.0.8-OAuthMGTwitterEngine iPhone的OAuth
我使用的MGTwitterEngine的OAuth驗證碼...但不是爲我工作嘗試的OAuth的MGTwitterEngine ...
它給了同樣的錯誤我漸漸使用XAUTH不啓用XAUTH Twitter integrated in Iphone App
錯誤日誌是:
Twitter request failed! (3AFB8476-929F-4467-A4FE-DE43358CB62A) Error: The operation couldn’t be completed. (HTTP error 401.) ((null))
還有一件事I H ave在設置應用程序密鑰和祕密中沒有發現任何內容?
可能由於此錯誤..請幫助我。
編輯 Twitter的按鈕選項卡上的代碼
-(IBAction)twitterBtnAct:(id)sender{
// Put your Twitter username and password here:
NSString *username = @"username";
NSString *password = @"password";
// Make sure you entered your login details before running this code... ;)
if ([username isEqualToString:@""] || [password isEqualToString:@""]) {
NSLog(@"You forgot to specify your username/password in AppController.m!");
}
// Create a TwitterEngine and set our login details.
twitterEngine = [[MGTwitterEngine alloc] initWithDelegate:self];
[twitterEngine setUsername:username password:password];
// Get updates from people the authenticated user follows.
[twitterEngine getFollowedTimelineFor:username since:nil startingAtPage:0];
}
阿米特Battan
我已經做了這些。我有增有問題的代碼,我使用 – 2011-03-03 08:56:25