3

Trying the following tutorial

http://www.androidsdkforum.com/android-sdk-development/3-oauth-twitter.html

i am having trouble understanding callback URL

my twitter app name is "faisal-android" and my call back url i defined in code is

myapp://wozzon-android

and having entry in xml file as

           <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="myapp" android:host="faisal-android" />
            </intent-filter>

m i way to defining callback url is correct ??

when i run the code it gives me error "Authorization failed (server replied with a 401). This can happen if the consumer key was not correct or the signatures did not match"

my twitter app account settings as following alt text http://www.freeimagehosting.net/uploads/a0c2689c73.png

d-man
  • 57,473
  • 85
  • 212
  • 296

3 Answers3

1

I think you need to check browser and not client if you use a callback url

I read something about this : http://blog.sogeti.com/mobile/2010/03/twitter-oauth-for-android.html (dead link)

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Kahlan
  • 26
  • 2
0

Check your callback UL in twitter . Enter any dummy URL not kept empty . You can write google.com, it work in my case.

i_max 77
  • 45
  • 2
  • 8
0

Android – OAuth updates to Twitter

http://dev.bostone.us/2009/07/16/android-oauth-twitter-updates/#awp::2009/07/16/android-oauth-twitter-updates/

Jorgesys
  • 124,308
  • 23
  • 334
  • 268