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

📝 Documentation Request - Formulating and Retrieving Device IDs #48

Open SethuSenthil opened 1 year ago

SethuSenthil commented 1 year ago

It would greatly enhance the usability and security of the library if documentation regarding the formulation and retrieval of device IDs could be provided. The following suggestions are aimed at improving the user experience and preventing potential issues:

  1. Formulating Device IDs: It would be beneficial to have documentation on how to formulate custom device IDs, including details such as:

    • Length: Specify the recommended or required length(s) for device ID strings.
    • Valid Prefixes: Identify the acceptable prefixes for different types of devices. For example, 'android-' for Android devices.
  2. Retrieving Existing Device IDs: Additionally, it would be advantageous to include documentation on retrieving existing device IDs from devices. This would provide users with the option to use a static device ID, which can help prevent the repeated generation of new IDs, potentially reducing the risk of account bans.

  3. Advantages of Using Existing Device IDs: To further improve user experience and decrease distinguishability, it would be ideal if the documentation could also highlight the benefits of using existing device IDs from actual devices. By leveraging an already-existing device ID, the requests made by the program would appear more similar, reducing the chances of detection or suspicion.

Providing comprehensive documentation on these topics will empower users to make informed decisions regarding device ID generation and utilization while ensuring a smoother and safer experience when using the program. Thank you for considering this feature request!

Aerglonus commented 1 year ago

Point 3. could also be extended to not only Device IDs but Device identifiers

Ex: Passing your existing device manufacturer, model, os_version/release will prevent the unrecognized login alert.

    device: {
      manufacturer: 'Samsung',
      model: 'SM-G901E',
      os_version: 13,
      os_release: '5.1',
    },