Bad Authentication data


#1

I am getting Bad Authentication data as error message with code = 215
when i followed the below link

https://dev.twitter.com/docs/auth/oauth/single-user-with-examples#php
This is the code that was given in that link

function getConnectionWithAccessToken($oauth_token, $oauth_token_secret) {
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $oauth_token, $oauth_token_secret);
return $connection;
}
$connection = getConnectionWithAccessToken(“abcdefg”, “hijklmnop”);
$content = $connection->get(“statuses/home_timeline”);



please help me
Thanks in advance

#2

I’m having the same issue with the single user in PHP


#3

Did you remember to add your URL to the authorized url list. I made this mistake and it took me hours to figure out. Slight oversight if you will


#4

Hi, can you explain what you mean by this? I realise you posted this quite some time ago but have just run into this problem and would like to fix it asap