为什么会出现此错误 ' - 只读应用程序无法 POST ' [英] Why this error ' - Read-only application cannot POST '

查看:27
本文介绍了为什么会出现此错误 ' - 只读应用程序无法 POST '的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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.我正在使用 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
  • Settings 选项卡中,将 Application type 更改为 Read、Write 和 Access direct messages
  • Reset keys 选项卡中,按下 Reset 按钮,相应地更新应用程序中的使用者密钥和密码.
    • 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.

      这篇关于为什么会出现此错误 ' - 只读应用程序无法 POST '的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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