I have been banging my head for a few hours over this, and can't seem
to figure it out.  When requesting the unauthorized request token from
OAuth, I can't seem to be able to get past the "Failed to validate
oauth signature and token" error.  I have used that Google tool to
verify that I am signing it properly.  I think it's probably because
I'm not using cURL correctly?

Here is an example header I am generating:

Authorization: Oauth oauth_callback="http%3A%2F

In PHP that's assigned to a $header variable, then I execute this,
which is probably where it fails:
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $request_url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_HTTPHEADER, array($header,"Content-Type:
        $result = curl_exec($ch);

What more do I need to do?  Thanks for any 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: 

Reply via email to