[iOS SDK] User Service - Twitter login not work with generated code.

  • [iOS SDK version]
    Backendless SDK v 1.21 for iOS and Mac OS X released 02.12.2015
    https://github.com/Backendless/ios-SDK latest SDK 03.17.2015

  • Reproduce step

    • Backendless console > Manage > App Settings > Twitter Consumer key/secret setting.
    • Backendless console > Code Generation > iOS - Twitter login [Check] > Download Project > Project run > Twitter click
  • Error message
    Following error messages appeared.

UserService -> easyLoginError: Unable to login user due to error: 401:Authentication credentials (https://dev.twitter.com/pages/auth) were missing or incorrect. Ensure that you have set valid consumer key/secret, access token/secret, and the system clock is in sync.
<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <error>Desktop applications only support the oauth_callback value 'oob'</error>
  <request>/oauth/request_token</request>
</hash>
2015-03-16 14:29:06.138 demoLogin[1503:60b] Unable to login user due to error: 401:Authentication credentials (https://dev.twitter.com/pages/auth) were missing or incorrect. Ensure that you have set valid consumer key/secret, access token/secret, and the system clock is in sync.
<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <error>Desktop applications only support the oauth_callback value 'oob'</error>
  <request>/oauth/request_token</request>
</hash>

Hi Niro,

This error means you haven’t set the “Twitter Consumer key” and “Twitter Consumer secret” options for your application from which you’ve get the codegen project (or they are incorrect).
You can set them on page “Manage” of the consol for your app:
http://support.backendless.com/public/attachments/11b933e1abfc5290739bc4b9ae596d2a.png</img>

Sorry, It’s my fault.
I didn’t enter the call back URL for Auth on Twitter developer console.
Now it works fine. Thank you!