DEV Community

Discussion on: Like, Retweet, and Follow in Twitter using Node JS

Collapse
 
ahmed_mahallawy profile image
Mahallawy

You need to upload the image using madia/upload post request of Twitter API. The response will include a media id.
Then make statuses/update post request with media id from previous one.
Here are links from Twitter API website to make the idea more clear
Media/upload post request
Statuses/update post request