xdevplatform / Twitter-API-v2-sample-code

Sample code for the Twitter API v2 endpoints
https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api
Apache License 2.0
2.61k stars 967 forks source link

When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. #122

Open rico0610 opened 1 year ago

rico0610 commented 1 year ago

Describe the bug This error shows when using a new created dev account with either the default project and app or new project and app with the free plan.

rico0610 commented 1 year ago

A lot is reporting the same errors here https://github.com/twitterdev/Twitter-API-v2-sample-code/issues/58#issuecomment-1522892154

grlicaa commented 1 year ago

+1 Same issue

baskaufs commented 1 year ago

Same issue. New account, app is attached to a project.

furkand commented 1 year ago

same here even app is attached to a project. No issue on create tweet endpoint

Justxd22 commented 1 year ago

Same! new account/project same issue :[

linliyuan commented 1 year ago

Same!Has anyone tested paid use? image

Adi-SOUL commented 1 year ago

Same issue here

gaiterjones commented 1 year ago

If you are using an old twitter api before projects existed you need to create a project and associate it with the existing old app before it will work under the new settings.

Abe410 commented 1 year ago

If you are using an old twitter api before projects existed you need to create a project and associate it with the existing old app before it will work under the new settings.

Could you repeat that?

Not sure I understand what you mean.

I had an app within a project using V2 which was working fine until the whole plan change thing.

I now have the basic $100 access, but still get the same error when I access the search tweets endpoint.

Bojangly commented 9 months ago

It appears twitter has locked this behind Pro. I have tested Basic and it does not work. Can someone confirm if this works with Pro?

elux commented 9 months ago

it doesn't work. it only work with the pro

On Sun, 8 Oct 2023, 2:29 pm Bojangly, @.***> wrote:

It appears twitter has locked this behind Pro. I have tested Basic and it does not work. Can someone confirm if this works with Pro?

— Reply to this email directly, view it on GitHub https://github.com/twitterdev/Twitter-API-v2-sample-code/issues/122#issuecomment-1752029060, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAYL6UQ4XVJA4EU7T7E33LX6KTC7AVCNFSM6AAAAAAXII6TEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJSGAZDSMBWGA . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>