I'm trying to integrate xauth authentication using the twitter4j library
I've found multiple guides similar to http://www.hiteshagrawal.com/java/twitter-xauth-permission-using-java that all indicate i should have the line:
Twitter twitter = new TwitterFactory().getInstance(username, password);
But this gives me an error, because the getInstance() method doesn't allow the parameter of two strings.
Did the twitter4j library change, or am I doing something wrong?