I am using Abraham"s TwitterOauth library to build an application that connects with Twitter and reads the timeline.
It would be great if Abraham Williams himself would answer my question but anyone that is familiar with the library is more than welcome to respond. I am using the whole TwitterOauth library including the files that get called in this order: redirect.php, callback.php, index.php.
It sort of works: the user is redirected to twitter log in to give rights to the app and I can get the tokens. The files redirect.php, callback.php, index.php are being called in this order. The problem is in index.php when I do a:
$content = $connection->get('account/verify_credentials');
$content contains [error]=>could not authenticate you. I saw a question about this already saying that the cause for this error is overwriting the access token. Now I am using all the files as they are available from download with the library. I didn't modify anything. Where in these files could be the overwriting of the access token?
I printed the final access token in callback.php and it showes the same token each time and my twitter user ID and my twitter user name wich means it sort of works. I don't know where is the problem. I don't modify anything in the abraham library files.