Receiving Error :{"errors":[{"message":"Your credentials do not allow access to this resource","code":220}]} on page


#1

Hi there.

I’m using Abraham’s fantastic TwitterOAuth class and it seems to be working fine.

However this is happening, when the callback.php is being run, it retrieves the username and stores it into a session, but when, on other pages I try to make calls to the API, the message Error :{“errors”:[{“message”:“Your credentials do not allow access to this resource”,“code”:220}]} appears.

I’ve been debugging it and have had no conclusive answers. Does anyone know why this could be?

NB: I even tried dumping out the contents of an API call that resulted in the error above, to which there were no errors reported for that call whilst in callback.php

Cheers

lofty


#2

have the same probleme here, too.

Output is:
Notice: Undefined index: oauth_token in twitteroauth.php on line 128 Notice: Undefined index: oauth_token_secret in twitteroauth.php on line 128
CONTENTstdClass Object
(
[errors] => Array
(
[0] => stdClass Object
(
[message] => Your credentials do not allow access to this resource
[code] => 220
)
)
)


#3

I use the same library and got the same error!