Why this error ' - Read-only application cannot POST '

sayem siam picture sayem siam · Dec 5, 2011 · Viewed 9.3k times · Source

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.

Answer

Benjamin Crouzier picture Benjamin Crouzier · Sep 24, 2012
  • 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.