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 134 forks source link

Is Possible to add iOS Useragent? #211

Open enggaraziz opened 11 months ago

enggaraziz commented 11 months ago

Can we add options for both Android and iOS useragents?

https://github.com/junhoyeo/threads-api/blob/d987ec440fac3520b005e1fda548eca6d8eadd03/threads-api/src/threads-api.ts#L441

to 'User-Agent': Barcelona ${LATEST_IOS_APP_VERSION} (iPhone15,3; iOS 16_5_1; en_US; en; scale=3.00; 1290x2796; 491279855)

when checked at session login activity, android device name not showing as name default device: https://github.com/junhoyeo/threads-api/blob/d987ec440fac3520b005e1fda548eca6d8eadd03/threads-api/src/threads-api.ts#L129

it displayed as Device not OnePlus A3010

not sure if this important or not for request?