Why this error ' - Read-only application canno

2019-03-20 16:48发布

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

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.

6条回答
混吃等死
2楼-- · 2019-03-20 16:58

Go to https://dev.twitter.com/ -> My Applications -> "go to your current application" -> Setting -> Give the permission for "Read, Write and Direct Access" -> Save it. After that uninstall your project from emulator or device, -> Clean project -> Run Project.

Hope it will helpful. try this one:

查看更多
【Aperson】
3楼-- · 2019-03-20 16:58

Stapes to follow for this problem.

Login with

https://dev.twitter.com/apps and goto settings

and Change the permission Read-only to

Read, Write and Access direct messages

and update page. and if in case not able to update then Re-Create the Tocken and try again problem will be solved..

查看更多
贪生不怕死
4楼-- · 2019-03-20 17:09
  • 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.

查看更多
叛逆
5楼-- · 2019-03-20 17:09

May be issue with your twitter application: Write Permission may remaining is it creates problem:

Go to https://dev.twitter.com/ -> My Applications -> "go to your current application" -> Setting -> Give the permission for "Read, Write and Direct Access" -> Save it. After that uninstall your project from emulator or device, -> Clean project -> Run Project.

Hope it will helpful:

查看更多
做自己的国王
6楼-- · 2019-03-20 17:21

Have you registered your application with twitter to get your consumer-secret key?

查看更多
ら.Afraid
7楼-- · 2019-03-20 17:21

You also have to revoke your old permission after you reset your permission.

  1. Go to https://twitter.com/settings/applications
  2. Find your app and you will see that it has read permission
  3. Revoke the access
查看更多
登录 后发表回答