Comments (6)
I cannot reproduce the issue. XAuth login works for me at least this way:
STTwitterAPIWrapper *twitter =
[STTwitterAPIWrapper twitterAPIWithOAuthConsumerName:@""
consumerKey:@""
consumerSecret:@""
username:@""
password:@""];
[twitter verifyCredentialsWithSuccessBlock:^(NSString *userName) {
NSLog(@"-- userName: %@", userName);
} errorBlock:^(NSError *error) {
}];
Please double-check your OAuth tokens and Twitter credentials, and post sample code if the problem persists.
from sttwitter.
After fix the tokens got another error. Still not able to indentify the line of the problem. I'm only testing the sample project for mac.
NSURLErrorDomain error -1012 - STTwitter[93615:303] Unhandled authentication challenge type - NSURLAuthenticationMethodOAuth2
from sttwitter.
XAuth authentication in the sample project works for me.
NSURLErrorDomain -1012 is an authentication issue.
Are you using a proxy server or something?
from sttwitter.
I do not use proxy and I'm on Mac OS X 10.8.3
from sttwitter.
Same issue for me too...
Unhandled authentication challenge type - NSURLAuthenticationMethodOAuth2
2013-07-10 01:39:46.956 MyDemo[56446:c07] Error: Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0xb04fc90 {NSErrorFailingURLKey=https://api.twitter.com/oauth/access_token, NSErrorFailingURLStringKey=https://api.twitter.com/oauth/access_token}
I am using IOS sample. Please dont say its working for you in your demo project.
from sttwitter.
I was able to reproduce the issue by using consumer tokens that are not "xAuth-enabled".
Hence, I think both of you are using consumer tokens that are not "xAuth-enabled".
In order to use the xAuth authentication process (and bypass the PIN step), Twitter requires consumer tokens to be "xAuth-enabled".
You can read more on this on Twitter website https://dev.twitter.com/docs/oauth/xauth and contact Twitter to have your custom tokens enabled for the xAuth authentication process.
Thank you for taking the time to report the issue.
I will add something about that in the project's README.
from sttwitter.
Related Issues (20)
- _getUserStreamStallWarning:... cancelling on receiving friends list?
- Attachment_url HOT 2
- postTokenRequest never callsback success or failure HOT 1
- Use of API only available in iOS 8
- Support for new events APIs HOT 1
- Modify character counter to take into account usernames at beginning of tweets HOT 1
- Carthage Support HOT 1
- STTwitter and iOS 11 HOT 2
- Twitter API request with JSON body HOT 2
- STTwitter in macOS 10.13 HOT 3
- Saving account to device settings HOT 1
- Perform video uploads from local NSData
- SLServiceTypeTwitter is deprecated in ios11 objc "SLServiceTypeTwitter' is deprecated: first deprecated in iOS 11.0"
- media_ids parameter is invalid.
- newest XCode throws warnings: This block declaration is not a prototype
- ⚠️ Legacy APIs must be migrated to new ones within 5 months! HOT 2
- Supporting “full_text” of a tweet with “tweet_mode=extended” HOT 1
- Twitter API 2.0
- How do I set up to jump to the Twitter App to sign in?
- Thread 1: "-[STTwitterAppOnly postTokenRequest:authenticateInsteadOfAuthorize:forceLogin:screenName:oauthCallback:errorBlock:]: unrecognized selector sent to instance 0x280371140" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sttwitter.