Hello,

I’ve created a Twitter app on the developer portal, as I have done multiple times and no matter what I try, I get a 403 error when trying to post to Twitter using the app details.

We use the Consumer Key, Consumer Secret, Access Token and Access Token Secret, I’ve ensured that the app has write permissions and also the access token has read/write permissions.

I’m not sure what to try now as I’ve performed this a multiple times with no issues and I just cannot get this to work and am wondering if there is a problem with the account itself but cannot report this to anyone.

I have also tried deleting and recreating the project and app, but still the same issue.

Any ideas what to suggest with this issue?

Thank you.

1 Like

What exact error message do you get, and what exact endpoint are you calling? What library / implementation are you using? I would also check to see if your system clock is in sync (this affects oAuth).

@IgorBrigadir thanks for your reply.

After more careful investigation, I see this error :

{"errors":[{"message":"You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you’ll need to apply for Elevated access via the Developer Portal. You can learn more here: https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-leve","code":453}]}

I’ll request this and try again.

Thank you for takin the time to reply.

1 Like

V2 supports creating Tweets / posting to Twitter, so it is likely that the library you are using may be hitting the legacy v1.1 endpoint.

1 Like

V2 doesn’t seem to support uploading pictures, and can’t send Tweets with pictures.

You need to upload the image using the 1.1 media upload endpoint (for now), but you can use the create Tweet in v2 to post the Tweet and attach the image.

1 Like

I am using java to build BOT

I didn’t find the way to upload attachments related to V2. I don’t know whether I should contact you or the author of this project. If there is a way for V2 API in other languages to send tweets with pictures, please give me a link, and I’ll have a look. Thank you.

Below is the tool I am using. Because of the community regulations, I can’t send the address to you directly.

I think @RedouaneBali might know more about how to use that library and how it is possible to use v1.1 to upload an image. I think the uploadMedia method would work, and then you could use the v2 Tweet endpoint. You’ll need to have a project with elevated access (both v1.1 and v2 API) to do that.

1 Like

Yes, I have only found this way after studying the documents for a day. I wonder if I have to have the permission of V1.1API to send tweets with pictures.

It is impossible to send tweets with pictures only in V2, right?

It is currently not possible to upload media using v2 endpoints, correct.

If you have Essential access on the developer portal, it should be possible to request Elevated access to gain access to v1.1 endpoints - this is free.

Hey, yes you’re right, you should use the uploadMedia method (v1.1) to upload your media, and then use the returned mediaId on the postTweet method (v2)

1 Like

I applied for the V1.1 API by using the following steps, but the page it appeared was a higher level of academic authority. I don’t need such a high level of authority. Why won’t it jump to the page for applying for V1.1 authority?

My English is poor. Can you give me a direct link to the application page?



This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.