-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to post multiple images using update_with_media #638
Comments
You'll need to upload the media first, then reference the media IDs when posting the Tweet:
|
@Roach Your comment helps me out, thanks! :) |
This works for me with images. Has anyone had success uploading video? When I run this code with an mp4 file: client.upload(file) I get this error: Faraday::TimeoutError: Net::ReadTimeout |
@nicholasjon , @jrgillick , @Roach , @tomoyuki28jp , can any of you help me with the following problem . I was trying to use In short , i want to tweet this image https://pbs.twimg.com/profile_images/793855561456418816/7ysHNRUu.jpg , with message "Hi" , but couldn't figure out the arguments here . Thank you in advance 😄 ! |
update_with_media was deprecated by Twitter about 3 years ago. You’d be better off following the example @Roach posted above with the two-stage upload and then update method. |
Thank you @andypiper for your reply ! Still i am not able to upload image , i tried following :
and then : |
And tried this too :
and then :
shows ERROR : Any help is much appreciated ! Thank you 😄 ! |
You cannot provide a URL as a media ID. You have to upload the image to the media/upload endpoint, and use the ID returned from there. |
I can use update_with_media to post single images without a problem, but whenever I attempt to post multiple images via update_with_media, I get the following error:
I'm trying to follow the example from: https://github.com/sferik/twitter/blob/master/examples/Update.md
Here's how I'm setting up my client:
The array of media I have looks like:
And here's how I'm trying to make my post:
Some more info:
The following work:
This does not:
The text was updated successfully, but these errors were encountered: