Skip to content
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

Images not being tweeted #9

Closed
alonzoperry opened this issue Jan 19, 2018 · 6 comments
Closed

Images not being tweeted #9

alonzoperry opened this issue Jan 19, 2018 · 6 comments

Comments

@alonzoperry
Copy link

First off, this is a great little application/script.

I'm having an issue with uploading images. When I run "tweet.sh upload image.png", I get a json string returned to me as if things worked but nothing is being tweeted out to the actual account. Any ideas?

Thanks

@piroor
Copy link
Owner

piroor commented Jan 19, 2018

The command ./tweet.sh upload just uploads specified image to the network storage. To post a tweet with images, you need to extract media_id from the result of ./tweet.sh upload and specify it via the -m option of ./tweet.sh post or ./tweet.sh reply.

@alonzoperry
Copy link
Author

Understood. So here's the output of that attempt.

./tweet.sh upload wilber-big.png
{"media_id":954206267744006149,"media_id_string":"954206267744006149","size":35207,"expires_after_secs":86400,"image":{"image_type":"image/png","w":300,"h":224}}

./tweet.sh tw -m 954206267744006149 Gimp
{"errors":[{"code":32,"message":"Could not authenticate you."}]}

Everything works just fine. Thanks again for releasing this tool.

@ramotswa
Copy link

I'm getting this "Could not authenticate you" error too. I have tried the line change as suggested by #8 , but that hasn't worked for me.

@alonzoperry
Copy link
Author

Ramotswa,

Oddly enough, your comment helped me fix it on my end. I made the change to line 1000 from #8 and now images are working for me. Thanks

@ramotswa
Copy link

ramotswa commented Jan 22, 2018 via email

@piroor
Copy link
Owner

piroor commented Apr 8, 2019

Files couldn't be uploaded due to my fault, and the problem should be fixed with 565657b.

@piroor piroor closed this as completed Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants