Check the application details in your Dev.twitter.com account. The app needs
to be set to read and write access.

On Fri, Jan 21, 2011 at 11:57 AM, shamm <shaena...@gmail.com> wrote:

> Thank you for your post, i have a question,
>
> Why does "Posting... Response code: 401 " get displayed even after i
> display the correct information asked in the post_tweet.php page;
>
>  $connection = new tmhOAuth(array(
>    'consumer_key' => 'xxxxxxxxxxxxxxxxxgxxxxxxxx',
>    'consumer_secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
>    'user_token' => '2xxxxxxxxxxxxx-
> SxxxxxxxxxxxxYxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
>    'user_secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxWiVkvBJcGA',
>  ));
>
> Any idea why this is hapenning ?
>
> On Jan 21, 8:28 pm, Adam Green <140...@gmail.com> wrote:
> > If you only need to send tweets to a single Twitter account, you can try
> > this PHP code, which uses Matt Harris's OAuth library:
> http://140dev.com/twitter-api-programming-tutorials/hello-twitter-oau...
> >
> > If you need a more advanced solution that tweets to multiple accounts
> where
> > the users log into your site first, you can take a look at Abraham's
> > library:https://github.com/abraham/twitteroauth
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Fri, Jan 21, 2011 at 10:16 AM, shamm <shaena...@gmail.com> wrote:
> > > Hi,
> >
> > > I am an absolute beginner here. I need to send tweets through a PHP
> > > web interface. It seems in the new twitter we should use 0Auth for
> > > authentication, i Googled and got loads of articles that explains
> > > these. yet i am still unclear to code this. Is there any easy to
> > > understand sample code (that could at least only send Tweets), so i
> > > could read and understand what's going on.
> >
> > > Please help !
> >
> > > --
> > > Twitter developer documentation and resources:
> http://dev.twitter.com/doc
> > > API updates via Twitter:http://twitter.com/twitterapi
> > > Issues/Enhancements Tracker:
> > >http://code.google.com/p/twitter-api/issues/list
> > > Change your membership to this group:
> > >http://groups.google.com/group/twitter-development-talk
> >
> > --
> > Adam Green
> > Twitter API Consultant and Trainerhttp://140dev.com
> > @140dev
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>



-- 
Adam Green
Twitter API Consultant and Trainer
http://140dev.com
@140dev

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to