403 Forbidden every time I try to Authorize for a token


#1

Hi. I’m trying to add a simple twitter feed to an app, so am trying to use app-only authentication, however EVERY request for a token is returned as “403 Forbidden: The server understood the request, but is refusing to fulfill it.”

I have doubled checked everything is correct, following the Twitter guide to the letter, yet still I always receive a 403.

My request looks like the below, and is being sent to: https://api.twitter.com/oauth2/token

POST /oauth2/token HTTP/1.1
Host: api.twitter.com
Authorization: Basic {TOKEN}
Content-Type: application/x-www-form-urlencoded;charset=UTF-8

grant_type=client_credentials

I have checked the token, it definitely is a base64 encoding of: api_key:api_secret

Have I done something obviously wrong?

The api key, if it helps is XjpqcY05jabI1CENqVEc5fmXE

Thanks.


#2

me too!! AnyBody???


#3

Same here, this is a real blocker