I got my code working well enough to forge ahead on my own thanks to
the examples on Abraham's github wiki page
On Aug 10, 12:25 pm, Skygazer <marc.bouc...@gmail.com> wrote:
> Hi everyone,
> I'm in the same boat as Paul G. My company publishes updates to
> Twitter whenever we post a new story. To date our code using basic
> authentication was working great. Now we're switching over toOAUTH
> using Abraham Williams library. I setup an app on Twitter's
> development site, got my keys and tokens and tried using thePHP
> twitteroauth library, but on my test server I can't even get the
> example to work. I get the "Could not connect to Twitter. Refresh the
> page or try again later" message. I've got the library running on my
> Mac Pro with Apache running on a port-forward.
> I'll note that when I created the app I used application type: browser
> and callback url: blank
> Any help would be appreciated. Code always welcome :-)
> On Jul 22, 2:09 pm, Paul G <p...@taosinteractive.com> wrote:
> > Hi Everyone.
> > I've been puzzling overOAuthfor some time now with little insight
> > into how to apply it to my situation. If someone could nudge me in
> > the right direction I'd be most grateful.
> > What I am doing now is very simple. Whenever my company publishes new
> > content to it's websites, the companyTwitteraccount is updated to
> > reflect it. This is not an application that is open to public use.
> > It doesn't require any browser-based login boxes or http redirects as
> > part of the process. In fact, such a requirement would prevent the
> > function of my current routine.
> > EXAMPLE: (synopsis)
> > require "classes/Twitter.class.php";
> > $PMTtweet = newTwitter("$twitterunamePMT", "$twitterpwordPMT");
> > $PMTsuccess = $PMTtweet->update("$thisTweet");
> > My questions are:
> > 1. Do I need to upgrade toOAuth?
> > 2. If I need to upgrade toOAuth, can it be done in such a way as to
> > work without browser login and redirect requirements? (as per example)
> > 3. If 2 is true, any tutorials that match that situation you can point
> > me to?
> > 4. If 1 && 2, where/how would I acquire the tokens necessary to useOAuth?
> > Apologies for the basic questions. I really did make an effort to
> > ferret out the answers but all the examples I encountered were much
> > more complex than my situation requires.
> > Thanks
> > Paul G