"Could not authenticate you." -error when using Twitter OAuth.

Posted by Martti Laine on Stack Overflow See other posts from Stack Overflow or by Martti Laine
Published on 2010-04-17T06:06:13Z Indexed on 2010/04/17 6:13 UTC
Read the original article Hit count: 1311

Filed under:
|
|

Hello

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, I get these lines on my callback.php:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in C:\xampp\htdocs\twitter\twitterOAuth\OAuth.php on line 301

Warning: strtoupper() expects parameter 1 to be string, array given in C:\xampp\htdocs\twitter\twitterOAuth\OAuth.php on line 373
Oops - an error has occurred.
SimpleXMLElement Object
(
    [request] => /account/verify_credentials.xml
    [error] => Could not authenticate you.
)

Is this problem by Twitter-class, or am I doing something wrong? I have my Consumer Key and Consumer Secret in config.php as tutorial says, but should I store something else?

Martti Laine

© Stack Overflow or respective owner

Related posts about twitter

Related posts about twitterapi