title: iOS: error message "[TwitterKit] did encounter error with message "Error obtaining user auth token.": Error Domain=TWTRLogInErrorDomain Code=-1 "
body: <p>I don't success to use the Twitter API connection in iOS with Objective-C. I use that codes:  </p>
  
  <pre><code>[[Twitter sharedInstance] logInWithCompletion:^
   (TWTRSession *session, NSError *error) {
       if (session) {
           NSLog(@"");
       }}];
  </code></pre>
  
  <p>In my AppDelegate:</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
  //Twitter
      [[Twitter sharedInstance] startWithConsumerKey:@"z0F**************cg" consumerSecret:@"PJu*******************N6W"];
  
  - (BOOL)application:(UIApplication *)app
              openURL:(NSURL *)url
              options:(NSDictionary&lt;UIApplicationOpenURLOptionsKey, id&gt; *)options {
          return [[Twitter sharedInstance] application:app openURL:url options:options];
  
      return NO;
  }
  </code></pre>
  
  <p>I precise that openURL is never called.</p>
  
  <p>I obtain several error message that I don't understand:  </p>
  
  <pre><code>Error Domain=TWTRNetworkingErrorDomain Code=-1011 "Request failed: unauthorized (401)" UserInfo={NSLocalizedFailureReason=Twitter API error : &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;hash&gt;
    &lt;error&gt;Desktop applications only support the oauth_callback value 'oob'&lt;/error&gt;
    &lt;request&gt;/oauth/request_token&lt;/request&gt;
  &lt;/hash&gt;
   (code (null)), TWTRNetworkingStatusCode=401, NSErrorFailingURLKey=https://api.twitter.com/oauth/request_token, NSLocalizedDescription=Request failed: unauthorized (401)}
  </code></pre>
  
  <p>AND:  </p>
  
  <pre><code> [TwitterKit] did encounter error with message "Error obtaining user auth token.": Error Domain=TWTRLogInErrorDomain Code=-1 "&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;hash&gt;
    &lt;error&gt;Desktop applications only support the oauth_callback value 'oob'&lt;/error&gt;
    &lt;request&gt;/oauth/request_token&lt;/request&gt;
  &lt;/hash&gt;
  " UserInfo={NSLocalizedDescription=&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;hash&gt;
    &lt;error&gt;Desktop applications only support the oauth_callback value 'oob'&lt;/error&gt;
    &lt;request&gt;/oauth/request_token&lt;/request&gt;
  &lt;/hash&gt;
  }
  </code></pre>
  
  <p>It seems that it is not connected, I see a lot of things in Swift, but nothing in Objective-C.  </p>
  
  <p>Thanks in advance.</p>