I am getting a similar error - I checked both the keys, and have them exactly as rendered in the page between the <code> tags.
I am doing this on a development server that is not publicly available, does the OAUTH mechanism require being able to call the requesting page? Or is there something else at issue here?
DEBUG - HTTP request details
DEBUG OBJECT - Array
(
[method] => POST
[url] =>
https://api.login.yahoo.com/oauth/v2/get_request_token [code] => 401
[requestHeaders] => Array
(
[0] => Accept: application/json
[1] => Content-Type: application/x-www-form-urlencoded
)
[requestBody] => oauth_callback=http%3A%2F%2Fdev.newsroom.newser.com%2F~bmcinturff%2Fyahoo%2Ftest.php&oauth_consumer_key=dj0yJmk9SjRhMkk2ZUloWTZNJmQ9WVdrOWNuTnNlRXgyTjJjbWNHbzlNV
FU0TlRZMk56SXlPQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD03MA--&oauth_nonce=ed6c5074785b4c9d178cfc8a359f75cd&oauth_signature=rvBGVvEGp3cQoZIQvULaBpEarv0%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1255624824&oauth_version=1.0
[responseHeaders] => Array
(
[Date] => Thu, 15 Oct 2009 16:40:24 GMT
[P3P] => policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
[WWW-Authenticate] => OAuth oauth_problem=signature_invalid
[Connection] => close
[Transfer-Encoding] => chunked
[Content-Type] => application/x-www-form-urlencoded
)
[responseBody] => oauth_problem=signature_invalid
)
ERROR - Failed to create request token: signature_invalid
ERROR - Failed to create request token
ERROR - Failed to create authorization URLs