Hello,
I try to get redirected to login page, but I get error code 32. Here’s my parameters for the last request:
KEYS:
CONSUMER_KEY = pxxxxxxxxxxDC
CONSUMER_SECRET = kxxxxxxxxxx2sPTCVy
ACCESS_TOKEN = 2xxxxxxxxxxSBP0P
ACCESS_TOKEN_SECRET = qX1xxxxxxxxxxmKESk0dv5ZKp
CALLBACK_URL = https://vntdhomeworktwitr.com/twitter
SIGNATURE:
URL = https://api.twitter.com/oauth/request_token
NONCE = A704BCB39C2F402CB87BEBB3A0474EC5
TIMESTAMP = 1440076225
PARAMETER_STRING = oauth_callback=https://vntdhomeworktwitr.com/twitter&oauth_consumer_key=pxxxxxxxxxxC&oauth_nonce=A704BCB39C2F402CB87BEBB3A0474EC5&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1440076225&oauth_token=27xxxxxxxxxx5jSBP0P&oauth_version=1.0
SIGNATURE_BASE_STRING = POST&https%3A%2F%2Fapi.twitter.com%2Foauth%2Frequest_token&oauth_callback%3Dhttps%3A%2F%2Fvntdhomeworktwitr.com%2Ftwitter%26oauth_consumer_key%3DpOxxxxxxxxxxMDC%26oauth_nonce%3DA704BCB39C2F402CB87BEBB3A0474EC5%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1440076225%26oauth_token%3D277xxxxxxxxxxBP0P%26oauth_version%3D1.0
SIGNING_KEY = kmHEuhxxxxxxxxxxzd547wQT2sPTCVy&
SIGNATURE = 8T7pxxxxxxxxxxCdbU
AUTHORIZATION HEADER:
HEAEDER = OAuth oauth_callback=“https%3A%2F%2Fvntdhomeworktwitr.com%2Ftwitter”, oauth_consumer_key=“pOxxxxxxxxxxDC”, oauth_nonce=“A7xxxxxxxxxx474EC5”, oauth_signature=“8T7xxxxxxxxxxoqoLv4ECdbU%3D”, oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“1440076225”, oauth_token=“27xxxxxxxxxxP0P”, oauth_version=“1.0”
REQUEST:
RESPONSE:
Does anyone know where my mistake is? I’m stuck with this request for a few days.
POST oauth/request_token is an anonymous request and should not have access_token/access_token_secret associated. Also make sure you reset your consumer_secret on apps.twitter.com and avoid publishing it in the future.
I have removed access_token from header and signature, but I have the same error.
I’ve edited out your keys from the post, but you’ve also posted them in the image - so as @abraham says, please make sure you regenerate them.
I’ll regenerate them as soon as I get the solution. I didn’t hide them because it will be easier to find where I made a mistake. Those values needed to generate a signature and others won’t see if I made a mistake generating signature if they won’t know what those values is.