francedema
francedema

Reputation: 31

Log in with twitter4j

I try to realize an application that log in in Twitter. I utilize the twitter4j like API. I follow this example:

http://consultingblogs.emc.com/nileeshabojjawar/archive/2010/03/18/twitter4j-oauth-generating-the-access-token.aspx

If you read the example, the application go in a page where is a PIN, but after the user must write the PIN. I would that this step is automatic. Anyone can suggest me?

Upvotes: 2

Views: 1394

Answers (1)

willwest
willwest

Reputation: 384

It seems like you're using an outdated tutorial. The tutorial you reference was published in 2010, a lot of things have changed since then. Applications can now be authenticated through a more automatic process.

Check out twitter4j's advice for application-only authentication. I'm not sure exactly what your application will be doing, but this seems to be the best option for most people. For more information on application-only authentication itself, check out Twitter's official documentation.

Alternatively, you can do a traditional OAuth authentication. In that case, there are many more options for ways to authenticate the user. Here is a listing of those options.

Upvotes: 1

Related Questions