为什么这个错误“ - 只读应用程序不能邮报” [英] Why this error ' - Read-only application cannot POST '

查看:153
本文介绍了为什么这个错误“ - 只读应用程序不能邮报”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

logcat的:

12-05 23:37:01.721:W/System.err(534):  401:Authentication credentials  (https://dev.twitter.com/docs/auth) were missing or incorrect. Ensure that you have set valid     conumer key/secret, access token/secret, and the system clock in in sync.
12-05 23:37:01.721: W/System.err(534): 401:Authentication credentials (https://dev.twitter.com/docs/auth) were missing or incorrect. Ensure that you have set valid conumer key/secret, access token/secret, and the system clock in in sync.
12-05 23:37:01.721: W/System.err(534): error - Read-only application cannot POST
12-05 23:37:01.721: W/System.err(534): request - /1/statuses/update.json

虽然我可以读取(getScreenName()函数)的网名,并设置读,写权限,我的Twitter应用程序,它给上述logcat.And我使用twitter4j JAR文件。

Though i can read the screen name by (getScreenName() function) and set read,write permission to my twitter application , it gives the above logcat.And i am using twitter4j jar file.

推荐答案

  • 登录在你的应用程序: http://dev.twitter.com/apps
  • 设置设置页,更改应用程序类型读,写和访问直接的信息
  • 复位键设置页,preSS的重置按钮,更新消费者密钥和秘密您的应用程序相应。

  • Login in your app: http://dev.twitter.com/apps
  • In the Settings tab, change the Application type to Read, Write and Access direct messages
  • In the Reset keys tab, press the Reset button, update the consumer key and secret in your application accordingly.
  • 看起来是复位键强制改变你的应用程序类型生效。

    It looks like that resetting the keys force the change to your application type to take effect.

    这篇关于为什么这个错误“ - 只读应用程序不能邮报”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆