[英]Error 401 when login twitter by twitter4j
I am doing an app android to login and upload photo to twitter. 我正在做一个应用程序android登录并上传照片到Twitter。
I used twitter4j to login and reference some tutorial..I extract that consumer key and consumer secret key are filled correct.But I encountered an error"401: Authentication credential...".Have a solution to fix it is sync time my server with time twitter server..But I don't understand what sync time here and how to extractly.. 我使用twitter4j登录并参考了一些教程。.我提取出用户密钥和用户秘密密钥已正确填充。但是我遇到了错误“ 401:身份验证凭据...”。有一个解决方案可以解决,它是服务器的同步时间与时间推特服务器..但我不明白这里什么同步时间以及如何提取..
Can you help me. 你能帮助我吗。
I was having that trouble, finally, the solution was to put a valid callback url in my twitter api ( https://dev.twitter.com/ ) I used google+ url and that's it. 我遇到了麻烦,最后,解决方案是在我使用的google +网址中的Twitter api( https://dev.twitter.com/ )中放入有效的回调网址。 The error dissapeared and now I can tweet with my app.
该错误消失了,现在我可以使用我的应用程序发布了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.