Aloha,
I am getting an error when I try to invalidate the bearer token:
/ERROR/
{“errors”:[{“label”:“authenticity_token_error”,“code”:99,“message”:“Unable to verify your credentials”}]}
/FIDDLER HEADER/
POST https://api.twitter.com/oauth2/invalidate_token/ HTTP/1.1
User-Agent: 127.0.0.1
Host: api.twitter.com
Accept: /
Authorization: Basic ( base64encoded(urlencoded(key):urlencoded(secret)) )
Content-Length: 119
Content-Type: application/x-www-form-urlencoded
access_token= (the access token)
I have recreated the application without pressing the ‘create my access token’ button and invalidating the token is suddenly working.
Why is invalidate_token not working when you have created the access tokens with the ‘create my access token’ button in http://dev.twitter.com. All the other application-only request (requesting bearer token and user_timeline) didn’t get the error.