“Could not authenticate you.” -error when using Twitter OAuth

前端 未结 2 1143
猫巷女王i
猫巷女王i 2021-01-23 01:37

I\'m building my first system using Twitters OAuth and have some issues.

First, I\'m using Abraham\'s Twitter-class for this and I have followed this tutorial. However,

相关标签:
2条回答
  • 2021-01-23 01:55

    I was having the same error, caused by a simple mistake:

    Doesn’t work: $this->twitteroauth->post('statuses/update’, $message);

    Works: $this->twitteroauth->post('statuses/update', array("status" => $message));

    0 讨论(0)
  • 2021-01-23 01:56

    The Snipe.net tutorial is for an older version of TwitterOAuth. Make sure you read the new documentation

    http://github.com/abraham/twitteroauth/blob/master/DOCUMENTATION

    In general updating to the new version is changing:

    $content = $to->OAuthRequest('https://twitter.com/account/verify_credentials.xml', array(), 'GET');

    to:

    $content = $to->get('account/verify_credentials');

    0 讨论(0)
提交回复
热议问题