another twitter oAuth cURL access token request that fails

后端 未结 4 2073
醉话见心
醉话见心 2020-11-29 07:14

The following function gives a validation error instead of the token:

failed to validate oAuth signature and token



        
4条回答
  •  借酒劲吻你
    2020-11-29 07:24

    not sure if your still looking into this, or if it will work for you, but i had a similar setup and had the same issue. I eventually found i was urlencoding one to many times. Try commenting out this section:

     $keys = $this->_urlencode_rfc3986(array_keys($params));
            $values = $this->_urlencode_rfc3986(array_values($params));
            $params = array_combine($keys, $values);
    

    Worked for me, so maybe it will help.

提交回复
热议问题