Fetching a list of posts where a specific user is tagged
Thank you for this wonderful project.
I am working with the thread app and I am trying to fetch a list of posts where a specific user has been tagged. I couldn't find any existing methods or functionality in the documentation or codebase that would allow me to do this.
Could you provide some guidance or direction on how to accomplish this? Any help would be greatly appreciated.
would love access to replies as well (fetch a list of posts that are replies made to any of your own posts) -- sorted in descending order of time w/ pagination. corresponding to the "replies" tab of the app.
Thanks again @junhoyeo for this project.
I have an update on listing replies to a users posts: I found a workaround; both get_user_profile_threads and get_user_profile_replies return items that contain a cta_string that indicates how many replies exist for that post. So continuously polling these endpoints and watching for changes in these cta_strings allows one to detect if any of a user's posts has new replies; once that is done it's easy to fetch all replies for those posts individually. Happy to share a code snippet if anyone is interested.
However I am still blocked on listing all posts that mention my user. I think being able to discover posts that mention your user would be useful to build bots that take actions when they are publicly tagged. For example, there are many twitter bots like savetonotion that work w/ public mentions. Since the threads mobile app has a feature that makes it easy for a user to see where they've been tagged, I'm guessing that it might be feasible to implement this as a private read method of threads-api.
I'm happy to help contribute but I have very little experience with reverse engineering mobile apps (have heard of frida but never used it) so would need some pointers to get started.
Hey! Popping in here to say hello and follow this thread (pun intended!)
I teach a class at NYU that has a module on making bots for social media. I have my basic "post every so often" example working on Threads using this wonderful unofficial API (thank you @junhoyeo!) and am moving onto an example which responds to arbitrary mentions. Found this discussion and would love to help if I can!