I’m integrating twitter into our system as another login option.I’m using twitter4j java library for interaction with twitter.
I need to do a simple task, i have users access token and i just need to connect to twitter and get the user information. but unfortunately in case of twitter i need additional params such as consumer_key,consumer_key_secret, access_token_secret. Do I need all of them? is there another way to get the user info with less params. i have integrated before with other social networks and they would only require access_token.
Here is my code that works with the 4 params, d
Twitter twitt = new TwitterFactory().getInstance();
twitter4j.User user = twitt.verifyCredentials();