Why is this error '- a read-only application cannot 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 

Although I can read the screen name using the getScreenName () function and set the read permission to write to my Twitter application, it gives the above logcat. And I use jar twitter4j file.

+6
source share
6 answers
  • Log in to your app: http://dev.twitter.com/apps
  • On the Settings tab, change the Application type value to Read, Write and Access direct messages
  • On the Reset keys tab, click the Reset button, update the user key and secret in your application, respectively.

It seems that resetting the keys will change the settings for your application type.

+11
source

Go to https://dev.twitter.com/ → My applications → “go to your current application” → Settings → Give permission for “Read, write and direct access” → Save. After that, delete your project from the emulator or device, → Clear project → Run project.

Hope this helps. try the following:

+2
source

Brackets for this problem.

Sign in with

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

and change the read-only resolution

Read, write and access direct messages

and refresh the page. and if in case of inability to update, then Re-Create the Tocken and try again, the problem will be solved.

+1
source

Did you register your application via twitter to get the secret key from the client?

0
source

There may be a problem with your twitter application: Perhaps recording permission may be a problem:

Go to https://dev.twitter.com/ → My applications → “go to your current application” → Settings → Give permission for “Read, write and direct access” → Save. After that, delete the project from the emulator or device, → Clear project → Run project.

Hope this helps:

0
source

You must also revoke your previous permission after resetting your permission.

0
source

Source: https://habr.com/ru/post/903131/


All Articles