Twitter 1.1 OAuth authenticity_token_error(99)

后端 未结 4 1136
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-19 04:41

I use the following code to get the bearer token:

$token = base64_encode($client_id.\':\'.$client_sec);

$data = array (\'grant_type\' => \'client_credent         


        
4条回答
  •  遥遥无期
    2020-12-19 05:15

    After fighting with this problem for a while I found the problem was I was making the call to /oauth2/token using Advanced Rest Client from a browser I was already logged into Twitter with. After logging out of Twitter and making the API call again it worked fine.

    Short answer: make sure you do not already have an active session logged into Twitter when attempting to request a Bearer token.

提交回复
热议问题