Closed btafoya closed 9 years ago
I did some more investigating and found the request method is failing.
Array ( [url] => https://api.twitter.com/oauth/request_token ) Array ( [value] => Array ( [oauth_callback] => http://fb.briantafoya.com/?action=twitter [oauth_consumer_key] => maskedout [oauth_consumer_secret] => maskedout [oauth_nonce] => maskedout [oauth_signature_method] => HMAC-SHA1 [oauth_timestamp] => 1423337224 [oauth_version] => 1.0 [oauth_token] => [oauth_verifier] => [oauth_token_secret] => )
) Array ( [data] => Failed to validate oauth signature and token [array] => Array ( [Failed_to_validate_oauth_signature_and_token] => )
)
This issue turned out to be the callback url... it must be absolute without a query string.
ex: mysite.com/twitter/ not: mysite.com/?action=twitter
I am getting this error using the example for Twitter... any help would be greatly appreciated.
E_NOTICE: Undefined index: oauth_token_secret File Line Instruction .../vendor/ohmy/auth/src/ohmy/Auth1/Flow/ThreeLegged.php
66
trigger_error() .../vendor/ohmy/auth/src/ohmy/Auth1/Flow/ThreeLegged.php
68
ohmy\Auth\Promise->then( Closure('0'=>'\ Recursion (Closure) **')) .../index.php
113
ohmy\Auth1\Flow\ThreeLegged->request( 'https://api.twitter.com/oauth/request_token')