Following edouane59/twittered/issues/163,
I have in my developer portal :
- 1 project
- 1 standalone app

I have requested access token, bearer and consumer acess token for both account.
With the 2nd app, I am not able to query api v2, I have this message :
(GET) Error calling api.twitter.com/2/users/by/username/kopax?expansions=pinned_tweet_id&user.fields=id,created_at,username,name,location,url,verified,profile_image_url,public_metrics,pinned_tweet_id,description,protected {"client_id":"20293032","detail":"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. You can create a project via the developer portal.","registration_url":"https://developer.twitter.com/en/docs/projects/overview","title":"Client Forbidden","required_enrollment":"Standard Basic","reason":"client-not-enrolled","type":"api.twitter.com/2/problems/client-forbidden"} - 403
It seems that I can link the project to my app, I don’t see how it is possible through my developer portal.
How can the standalone app access Twitter API v2 ?
1 Like
It can’t, unfortunately only 1 app can be in 1 project, and that’s the only one that can access v2
The exact same tokens should work for both v1.1 and v2
Why would Twitter disallow one of two API?
Hi @DimitriKOPRIWA,
I just replied to the issue via GitHub but figured I’d reply here too. With v2, we launched the concept of Projects as part of our improvements to create more structure, but at this point, you can only have one App attached to a Project.
We’ve been considering allowing multiple Apps to be attached to one Project as an improvement for the future. There are a few topics on this on our feedback channel that you can vote on or add feedback on.
2 Likes