update my own twitter account with PHP

Posted on 2011-02-28
Last Modified: 2012-05-11

I've found this script :

But it is based on a multiple user environment. And for that reason it forces the user to authenticate during the session.

Now I'd like to be able to post/update my own account without having to push an extra button. I would like to post a new news item on our soccer club website and update with the same action the twitter account of the soccer club.

I found out that after registration of my "application" I've got a "Access Token (oauth_token)"  and a "Access Token Secret (oauth_token_secret)" can these be used in this code to automate the authentication process?

And do I still have to use the call back URL?

What should be changed in what file to get this working? Or even better do you have working sample of a similar way of posting?


Question by:Steynsk
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

Steynsk earned 0 total points
ID: 34996089

Never mind ...

I've got my answer:


Author Closing Comment

ID: 34996092
I've provided my own answer
LVL 14

Expert Comment

ID: 34996107
This is what you are looking for:

Of course you can look for another example by typing this into google "php twitter oauth automatically"

Example by using library that you posted:


Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question