Twitter status update with PHP

shtaffa
shtaffa used Ask the Experts™
on
I have a script that runs on a schedule that checks to see if there is anything "Twitter worthy" on a web page and if there is it updates the status of a Twitter account.  This script has not been working since Twitter changed their authentication methods for the API.

I started looking through examples of code using the new OAuth methods.  All of them mention that I have to register my application with Twitter.  I go to the Twitter page to do this, but I think I'm going to have problems with all of the URL's requested since this script resides on my company's intranet.

I don't understand why I have to register an application if all I'm trying to do is perform an automated status update.  That should just be basic functionality of the API.

Any advice or code examples would be much appreciated.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2011
Top Expert 2016

Commented:
Something in this search results set might be useful.  I have not tried any of them, but I will have to, as my old Twitter class has the same problem you've encountered.
http://lmgtfy.com?q=Twitter+authentication

Author

Commented:
@progressed: Those all appear to be a way to display a twitter feed on a web page, not a way to post tweets.  That is what I'm trying to do.  Please re-read the question.

@Ray: Unfortunately the first thing I did was do a search through Google.  They all lead to the Twitter page where you have to register your application, in which case you have to put URL's in their form in order to get OAuth to work.  Not sure how Twitter will be able to redirect users to an IP on my intranet.
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

Commented:
In the meantime, I've reverted my code back to using the service located at tweetymail.com.  It was what I was originally using before I started using my now defunct method of posting Twitter updates.  I will leave this question open to see if anyone has an idea for how I can go about trying to do what I'm asking.  If I get another message from Experts Exchange regarding this question and how it has become abandoned, I will accept this post as my solution.
Most Valuable Expert 2011
Top Expert 2016

Commented:
Is there no public facing IP address for your "intranet?"  If not, you may be out of luck.

Author

Commented:
Nope.  This is an internal only page.  We run a grocery store chain.  I wrote a script that checks to see if there are any ads that broke that day and if there are it tweets about them.  I also wanted to create an easy to use interface (believe me, we need it for some of the folks that we have) to create tweets about special events and other things that are going on in our stores.  I've also built some user tacking into it so I can tell which numbskull tweeted what.  This site is only available within our LAN.

Author

Commented:
I was hoping to find guidance with using the new Twitter OAuth method.  I did not get assistance in doing that.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial