if(strlen($client->client_id) == 0
|| strlen($client->client_secret) == 0)
die('Please go to Twitter Apps page https://dev.twitter.com/apps/new , '.
'create an application, and in the line '.$application_line.
' set the client_id to Consumer key and client_secret with Consumer secret. '.
'The Callback URL must be '.$client->redirect_uri);
$success = $client->CallAPI(
,array('status'=>'This is a test tweet to evaluate the PHP OAuth API support update twitter status sent at '.strftime("%Y-%m-%d %H:%M:%S")
[debug_output] => OAuth client: Checking the OAuth token authorization state
OAuth client: The OAuth token was already authorized
OAuth client: Accessing the API call at https://api.twitter.com/1.1/statuses/update
OAuth client: Could not retrieve the OAuth access token. Error: it was not possible to access the API call: it was returned an unexpected response status 401 Response:
And here are the errors inside $client
[access_token_error] => it was not possible to access the API call: it was returned an unexpected response status 401 Response:
[response_status] => 401
it says that "The OAuth token was already authorized" but why is it that I am having an "access_token_error"?