junhoyeo / threads-api

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

Add test code, remove some HTTP headers #4

Closed Mineru98 closed 1 year ago

Mineru98 commented 1 year ago

I think we need to have some discussion about the header values.

x-fb-lsd, x-asbd-id, x-ig-app-id

These three values are inferred to be the current values for your facebook account.

I found the issue during writing an API to get comments on a thread.

junhoyeo commented 1 year ago

x-fb-lsd, x-asbd-id, x-ig-app-id

These three values are inferred to be the current values for your facebook account. I found the issue during writing an API to get comments on a thread.

Oh I see. 😆 Didn't know that, thanks! (Strange, I thought I used Incognito when scraping those headers) If this still works without passing those values, I think it'll safe to remove them.

junhoyeo commented 1 year ago

Do you think we should remove them from Git History as well?

Mineru98 commented 1 year ago

Do you think we should remove them from Git History as well?

you mean's that you don't want to commit this current PR?

If so, I'll create a new one and PR it again.

junhoyeo commented 1 year ago

you mean's that you don't want to commit this current PR?

Um nope was just asking - PR looks good to me!

Mineru98 commented 1 year ago

you mean's that you don't want to commit this current PR?

Um nope was just asking - PR looks good to me! Let's just leave the keys in history and merge this :) I'll just terminate my sessions, not much of a severity to me!

Of course!

junhoyeo commented 1 year ago

Thanks a lot 🙇