We’re using Abraham’s TwitterOauth library for PHP. It’s been running fine for over a year.
Today, one user kept getting 215 Bad Authentication Data errors for any API call we’d make after getting their token/secret.
$twitteroauth = new TwitterOAuth($arr_config['twitter_consumer_key'], $arr_config['twitter_consumer_secret'], $_SESSION['tw_oauth_request_token'], $_SESSION['tw_oauth_request_token_secret']); // Let's request the access token $access_token = $twitteroauth->oauth("oauth/access_token", array("oauth_verifier" => $_GET['oauth_verifier'])); // need to set up new TwitterOAuth with the long-lived token/secret $twitteroauth = new TwitterOAuth($arr_config['twitter_consumer_key'], $arr_config['twitter_consumer_secret'],$access_token['oauth_token'], $access_token['oauth_token_secret']); // Let's get the user's info $user_info = $twitteroauth->get('account/verify_credentials');
$user_info contains only ‘errors’ for this 1 user (@MrsFPresents) - every other user we try is fine.
Same goes for other API endpoints we try for that account (e.g. ‘lists/list’)
I’ve looked through their account settings, and can’t see anything that stands out immediately as a possible cause.
Update: has just happened for another user, and comments from other devs below indicate it’s widespread. @andypiper - has something been released recently that may have broken the API?