Twitter API Setup
Go to https://yourdomain.com/admin/developer-settings/platform-settings
Or click to Developer Settings > Platform Settings > Twitter 
Then
Go to https://developer.x.com/ (opens in a new tab)
Or click to Developer Portal

- Click Create App

- Fill Up all informations and create app

- click this

- Enable
Read and write of App permissions
enable Type of App Web App, Automated App or Bot
add your website link, and callback url
- After Setup the informations you will redirect to this page and copy the Client Id & Client Secret
and paste the credentials in here
- Click to Keys and tokens

- Regenerate new token

- Copy the credentials
and paste it here
- Generate Access token and Secret and copy it

and paste it here