[英]Log in with twitter4j
I try to realize an application that log in in Twitter. 我试图实现一个登录到Twitter的应用程序。 I utilize the twitter4j like API.
我利用类似API的twitter4j。 I follow this example:
我遵循以下示例:
http://consultingblogs.emc.com/nileeshabojjawar/archive/2010/03/18/twitter4j-oauth-generating-the-access-token.aspx 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. 如果您阅读了该示例,则应用程序进入的页面是PIN,但是在用户必须输入PIN之后。 I would that this step is automatic.
我希望这一步骤是自动的。 Anyone can suggest me?
有人可以建议我吗?
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.
您参考的教程于2010年发布,此后发生了很多变化。 Applications can now be authenticated through a more automatic process.
现在可以通过更自动化的过程对应用程序进行身份验证。
Check out twitter4j's advice for application-only authentication . 查看twitter4j有关仅应用程序身份验证的建议。 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 .
有关仅应用程序身份验证本身的更多信息,请查看Twitter的官方文档 。
Alternatively, you can do a traditional OAuth authentication. 或者,您可以执行传统的OAuth身份验证。 In that case, there are many more options for ways to authenticate the user.
在这种情况下,还有更多的方法可以用来验证用户身份。 Here is a listing of those options.
这是这些选项的清单。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.