I was using simon’s twitter library to implement sign in with twitter in code igniter
http://www.simonemms.com/2012/02/22/twitter-for-codeigniter/
here’s the code
Twitter Configuration
$config['twitter'] = array(
'_tokens' => array(
'consumer_key' => 'xxxxxxxxxxxxxxxxxxxxx',
'consumer_secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
//'access_key' => '',
//'access_secret' => '',
),
'_force_login' => false, /* Do we force the user to login */
'_token_session' => 'twitter_oauth_tokens', /* Session name */
'_open_in_new_window' => true, /* Do links in Tweets get opened in a new window (add target="_blank" if true) */
'_new_window_target' => '_blank',
'_search_url' => 'http://twitter.com/search?q=%search%', /* Link for searches - '%search% is where the search key lives */
'_user_url' => 'http://twitter.com/%user%', /* Link for profiles - %user% is where the username lives */
/* Cache method (remember to make /applications/cache writable) or false for no caching */
'_cache_method' => array(
'adapter' => 'apc',
'backup' => 'file',
),
'cache_timeout' => 60, /* Timeout in seconds */
/* Most of these things shouldn't change */
'_access_token_url' => 'http://api.twitter.com/oauth/access_token',
'_api_url' => 'https://api.twitter.com/1.1/',
'_authorization_url' => 'http://api.twitter.com/oauth/authorize',
'_request_token_url' => 'http://api.twitter.com/oauth/request_token',
'_signature_method' => 'HMAC-SHA1',
'_version' => '1.0',
'_method' => 'json',
);
but I got this issue
it says :
401 | Request failed{“errors”:[{“message”:“Could not authenticate you”,“code”:32}]}
so as it is mentioned in https://dev.twitter.com/docs/error-codes-responses
that my error probably happened because of something missing or incorrect in the authorizaton credentials, but I’m sure there is no issue with my auth tokens…what else could be possible?
thx