Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

update my own twitter account with PHP

Posted on 2011-02-28
3
Medium Priority
?
365 Views
Last Modified: 2012-05-11
Hi,

I've found this script :

http://github.com/abraham/twitteroauth/downloads

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?

Thanks




0
Comment
Question by:Steynsk
[X]
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
3 Comments
 
LVL 1

Accepted Solution

by:
Steynsk earned 0 total points
ID: 34996089


Never mind ...

I've got my answer:

https://gist.github.com/564882

Thanks
0
 
LVL 1

Author Closing Comment

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

Expert Comment

by:R-Byter
ID: 34996107
This is what you are looking for:

http://articles.sitepoint.com/article/oauth-for-php-twitter-apps-part-1

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

Example by using library that you posted:

http://ditio.net/2010/06/07/twitter-php-oauth-update-status/

Regards
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
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…
Suggested Courses

636 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