It is possible to use tokens obtained via this Web in JAVA application?


#1

I got the access_token and Access_Token_Secret tokens, a user using a request via website on PHP, and tokens at hand recorded in a MySql database.

I would like to use these tokens in a Desktop application, developed in Java, with the Twitter4J library.

Within the Java application, when I trigger the VerifyCredentials I () method, I get an error stating that the username or password is invalid, or that the tokens are expired.

The java application only works when manually Set The tokens of the application administrator. He always looks for the data in the file :: twitter4j.properties

In short, I need to use this application, with authentication of other users that are registered in my database.

It is possible to use tokens obtained via this Web in JAVA application?

Or do I need to do to request the token itself in JAVA code?

Translated: by Google Translate