Issue with Twitter OAuth callback on Android when user login credentials are stored in browser -


i've integrated twitter4j android app , part works seamlessly have noticed sporadic issue occurs when attempting authenticate twitter when user has indicated have login credentials twitter saved in browser. after call getoauthrequesttoken(callbackurl) made, android browser opened usual, browser pops error page like:

web page not available web page @ https://api.twitter.comtwitter-callback-uri:///?oath_token=.....................

so, looks happening browser being redirected invalid url. think redirect should this: twitter-callback-uri:///?oath_token=...............

to provide more info, request token looks this:

rtoken = twit.getoauthrequesttoken("twitter-callback-uri:///"); 

and intent filter added android manifest recognize uri. intent filter looks this:

    <activity android:name=".loginactivity"          android:screenorientation="unspecified"         android:finishontasklaunch="true">         <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="twitter-callback-uri"/>          </intent-filter>      </activity> 

this typically works, problem seems if user's twitter login credentials saved in browser.

i'm having same problem you. found question after asking mine :) take @ this

twitter api returns invalid callback - cannot authorize

specifically, @ code snippet in question.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -