junhoyeo / threads-api

Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads. Web UI Included.
https://threads.junho.io
MIT License
1.58k stars 135 forks source link

Image uploading via `threadsAPI.uploadImage` not working #70

Closed junhoyeo closed 1 year ago

junhoyeo commented 1 year ago

Background

threadsAPI.uploadImage method added by @Mineru98 (I accidentally merged #62 to main before adding changes, so I made another following PR in #66) isn't working.

junhoyeo commented 1 year ago

my mistake, working on it

FieryFlames commented 1 year ago

Maybe publishWithImage should be combined with publish and support multiple images in the same thread.

junhoyeo commented 1 year ago

Maybe publishWithImage should be combined with publish and support multiple images in the same thread.

@FieryFlames super agreed, will do + also we can add auto splitting text requested in #55

Mineru98 commented 1 year ago

Maybe publishWithImage should be combined with publish and support multiple images in the same thread.

For now, we only support a single image and will update after we do the relevant reversing.

FieryFlames commented 1 year ago

I started looking into it and from a very initial glance they upload the images but then there's a different request used to add/set the images?

Mineru98 commented 1 year ago

I'm not sure about that.

FieryFlames commented 1 year ago

This is what I'm seeing:

Screenshot 2023-07-09 at 8 30 54 PM

Instead of configure_text_post_app_feed, they use configure_text_post_app_sidecar

junhoyeo commented 1 year ago

my mistake, working on it

Problem was with Axios Usage. Done.

junhoyeo commented 1 year ago

Instead of configure_text_post_app_feed, they use configure_text_post_app_sidecar

Awesome discovery! Thank you a lot :)