Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why this error ' - 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

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.

like image 488
sayem siam Avatar asked Dec 05 '11 18:12

sayem siam


5 Answers

  • 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.

like image 85
Benjamin Crouzier Avatar answered Nov 15 '22 08:11

Benjamin Crouzier


2022 UPDATE

all previously posted solutions don't work anymore. Here is the current solutiuon:

  1. select your app
  2. edit auth settings
  3. enable OAuth1
  4. select required permissions
  5. Enter the call back URL (it can be anything)
  6. Re-generate API Token (NOTE: you must do this or this process will not work)

dashboard (step 1+2)

enter image description here

settings (step 3+4)

enter image description here

like image 15
dcts Avatar answered Nov 15 '22 06:11

dcts


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:

like image 3
Android Agency Avatar answered Nov 15 '22 06:11

Android Agency


Steps to follow for this problem.

Login with

https://dev.twitter.com/apps and go to 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 Token and try again problem will be solved..

like image 3
Kishan Bheemajiyani Avatar answered Nov 15 '22 06:11

Kishan Bheemajiyani


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:

like image 2
user2368799 Avatar answered Nov 15 '22 06:11

user2368799