Bad Authentication data


I am getting Bad Authentication data as error message with code = 215
when i followed the below link
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


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


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


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