Bad Authentication data

cmo_engage
@cmo_engage cmo_engage

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

  1.  
  2. function getConnectionWithAccessToken($oauth_token, $oauth_token_secret) {
  3.   $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $oauth_token, $oauth_token_secret);
  4.   return $connection;
  5. }
  6. $connection = getConnectionWithAccessToken("abcdefg", "hijklmnop");
  7. $content = $connection->get("statuses/home_timeline");

please help me
Thanks in advance

1 year 30 weeks ago

Replies

webcubs
@webcubs Roman Bogdan

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

1 year 22 weeks ago
CreativityKills
@CreativityKills CreativityKills

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

1 year 11 weeks ago
acwag_org_uk
@acwag_org_uk acwag

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

38 weeks 6 days ago