linvi / tweetinvi

Tweetinvi, an intuitive Twitter C# library for the REST and Stream API. It supports .NET, .NETCore, UAP (Xamarin)...
MIT License
1k stars 220 forks source link

Forbidden error for fetching UserTimeline #1218

Open kamoco opened 11 months ago

kamoco commented 11 months ago

I am trying to fetch the timeline of a user and I am getting the following forbidden error. Any idea why?

Reason : Forbidden Details : {"errors":[{"message":"You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.twitter.com/en/portal/product","code":453}]} (0) Code : 403 Date : 7/13/2023 4:44:24 AM +00:00 URL : https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=&count=200&tweet_mode=extended&exclude_replies=false&include_rts=false Twitter documentation description : Forbidden - The request is understood, but it has been refused or access is not allowed. An accompanying error message will explain why. This code is used when requests are being denied due to update limits

Gitekkaad commented 11 months ago

You would have to know which account tier you are using.. in the free version, no more tweets or timelines can be read

imcanida commented 11 months ago

Having similar issue when using library. We have cheaper paid subscription; other endpoints are working such as GetUserByNameAsync.

But when it hits GetUserTimelineAsync throws the error @kamoco mentions.

I've also confirmed that running the twitter v2 api via Postman does work providing a valid bearer token.

kamoco commented 11 months ago

Does that mean for it to work now we need to sign up for $5000 subscription?

WolfgangHG commented 9 months ago

Just to point to the features per license: FREE: https://developer.twitter.com/en/portal/products/free BASIC (needed to read timelines): https://developer.twitter.com/en/portal/products/basic