Twitter API: self-sign-in

I am developing a project where I need to send tweets from my web applications. These tweets should be sent through my account and not to the user account. The OAuth library forces us to display a login screen, which is not required in this case. I am looking for a way to log in to twitter through my username and password (we do not ask users to send username and password) and tweet user activity or something like that.

the OOB / Pincode method is not possible, and also requires interaction with the person by entering a pin code ...

This can be achieved if Twitter supports the old authentication method (I believe Twitter no longer supports the old auth method) .... Does anyone know how I can achieve this using OAuth or anything else

+4
source share
1 answer

I believe you need to use Twitter XAuth . This will allow you to generate an access token without expiration for your application using a username / password. After that, you can manage the username / password and use the token to check further API requests.

If you want to send tweets from the same account as your application registered, I believe that you can also use the access token indicated on the settings page of your application. The documentation is here . You can go to the part where you have the OAuth token and you need to sign the request.

I gave an example of authentication on Twitter using oAuth and an application access token here .

+3
source

Source: https://habr.com/ru/post/1369491/


All Articles