OAuth get request token


I want to place a button sign in by Twitter in my website. At the first step of authentication, I need to get request token. However, I always get the message: “Failed to validate oauth signature and token” in my code (I’m using java)

So I use the OAuth tool in developer side, and get the below command to test:

curl --request ‘POST’ ‘https://api.twitter.com/oauth/request_token’ --header ‘Authorization: OAuth oauth_consumer_key=“TAbpyueOL5gfE2yCrqKA”, oauth_nonce=“19b6a229c180756fba8681eda43f4257”, oauth_signature=“c217Dw%2Fnd2EPGm6mhttwCVSgziI%3D”, oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“1375947736”, oauth_version=“1.0”’ --verbose

But even with that command generated by Twitter developer tool, I still get “Failed to validate oauth signature and token” message. Can somebody help me out and point me what I’ve done wrong?


me too i have same problem here