abraham / twitteroauth

The most popular PHP library for use with the Twitter OAuth REST API.
https://twitteroauth.com
MIT License
4.3k stars 1.71k forks source link

Sorry, you are not authorized to see this status #1203

Closed emirkutlu closed 1 year ago

emirkutlu commented 1 year ago

Hello everyone, I am using Twitter oauth v1. I log in with pin based login. mac unofficial api for cs key and cs secret Consumer key: 3rJOl1ODzm9yZy63FACdg Consumer secret: 5jPoQ5kQvMJFDYRNE8bQ4rHuds4xJqhvgNJM4awaE8 I use values.

There is no problem when sending a like or follow, however, When I try to retweet or tweet it says "Sorry, you are not authorized to see this status." I get an error.

My example code: $sendAction = new TwitterOAuth($consumerKey, $consumerSecret, $user->twi_access_token, $user->twi_access_token_secret); $response = $sendAction->post('statuses/update', ['status' => "Test Tweet"]); var_dump($response);

Can you share any information about why I am getting this error?

abraham commented 1 year ago

No idea why you're getting that error. "Sorry, you are not authorized to see this status" suggests that you are authenticated and trying to do something you're user isn't allowed to do. I don't know anything about Twitter's app keys and can't help with them.