Twitter.isValidLogin() broken for read/write access permissions

23 views
Skip to first unread message

Anton Zeef

unread,
Jun 30, 2011, 4:12:27 PM6/30/11
to JTwitter
Hi,
We used to be using Twitter.isValidLogin() to safe guard against users
revoking the authentication tokens for our app. Seems that call reads
the direct messages for the user to check the credentials of, but as
of a little more than an hour ago the direct-messages can no longer be
read for apps with read/write access permissions, see
https://groups.google.com/group/twitter-development-talk/browse_thread/thread/4956a4dd169be70c#

Is using
Twitter twitt = ...
new TwitterAccount(twitt).verifyCredentials()
the new way to go?

Regards,
Anton Zeef

Anton Zeef

unread,
Jun 30, 2011, 4:27:21 PM6/30/11
to JTwitter
N.B. I'm using JTwitter 2.1.3

On Jun 30, 10:12 pm, Anton Zeef <anton.z...@gmail.com> wrote:
> Hi,
> We used to be using Twitter.isValidLogin() to safe guard against users
> revoking the authentication tokens for our app. Seems that call reads
> the direct messages for the user to check the credentials of, but as
> of a little more than an hour ago the direct-messages can no longer be
> read for apps with read/write access permissions, seehttps://groups.google.com/group/twitter-development-talk/browse_threa...

Daniel Winterstein

unread,
Jul 1, 2011, 2:59:33 AM7/1/11
to jt...@googlegroups.com
Hi Anton,

Thanks for reporting that. I've fixed it now - see v2.1.5
(http://www.winterwell.com/software/jtwitter.php)
The latest version also adds some tools for working with the new access levels.
You can find out what access level an oauth token gives you as follows:

Twitter twitter = ...
TwitterAccount twitterAccount = new TwitterAccount(twitter);
KAccessLevel level = TwitterAccount.getAccessLevel()

Best regards,
- Daniel

--
--------------------------------------------------
Daniel Winterstein
Edinburgh
http://winterwell.com   http://soda.sh

Reply all
Reply to author
Forward
0 new messages