making API call to update status

21 views
Skip to first unread message

Nasir

unread,
Jun 4, 2009, 12:50:24 AM6/4/09
to Twitter Development Talk
Hi,

Can any one help me to make api call after authentication using OAuth-
php. Its gives an error (Read-only application cannot POST)

Thanks

avinash srivastava

unread,
Jun 4, 2009, 1:13:54 AM6/4/09
to twitter-deve...@googlegroups.com
looks like while setting up your application you have asked for read permission only. Check for access type in your application settings on twitter and make it read and write.


Avinash

Abraham Williams

unread,
Jun 4, 2009, 5:57:13 PM6/4/09
to twitter-deve...@googlegroups.com
If an application is created using read-only an account grants access and then the application changes to read-write the user needs to grant access again in order for the application to post updates.
--
Abraham Williams | http://the.hackerconundrum.com
Hacker | http://abrah.am | http://twitter.com/abraham
Project | http://fireeagle.labs.poseurtech.com
This email is: [ ] blogable [x] ask first [ ] private.
Sent from Madison, Wisconsin, United States

James

unread,
Jun 21, 2009, 7:30:45 PM6/21/09
to Twitter Development Talk


On Jun 4, 2:57 pm, Abraham Williams <4bra...@gmail.com> wrote:
> If an application is created using read-only an account grants access and
> then the application changes to read-write the user needs to grant access
> again in order for the application to post updates.
>


I've changed my application to read-write, reset the consumer key/
secret, and re-authenticated as an end-user, and I'm still getting the
'Read-only application cannot POST' error.

It's been several hours. Either Twitter is taking a while to propagate
the changes, or there's something else to do that I haven't thought
of....




>
>
> On Thu, Jun 4, 2009 at 00:13, avinash srivastava <asi...@gmail.com> wrote:
> > looks like while setting up your application you have asked for read
> > permission only. Check for access type in your application settings on
> > twitter and make it read and write.
>
> > Avinash
>

Matt Sanford

unread,
Jun 22, 2009, 10:44:57 AM6/22/09
to twitter-deve...@googlegroups.com
Hi there,

The read and read/write permission level is stored on a per-token
basis. This is to prevent a user from authorizing your application as
"read only" and you escalating it to "read and write" without their
knowledge. You need to get a new token for the user in question to be
able to write. You can also pass the oauth_access_type parameter in
the user redirect [1] to specify.

Thanks;
– Matt Sanford / @mzsanford
Twitter Dev

[1] - http://groups.google.com/group/twitter-development-talk/browse_frm/thread/d4fefae61f5e7019

Reply all
Reply to author
Forward
0 new messages