[Drupal] How to create a Twitter app for posting published content on Twitter?

| | 1 min read

We were requested by a client to create a Twitter application in their Drupal site which would post the published content automatically on Twitter. If you want to know how to create a Twitter app for posting published content on Twitter in a Drupal 7 site, then continue reading

  1. Use this link for creating a new Twitter application
    https://dev.twitter.com/apps/new
  2. In the application page, add the name of the app, description of the app & Callback URL:
  3. After that enable 'Yes' in the I agree option and enter the Captcha from the application page
  4. Next click on "Create your Twitter application"
  5. Change the Access level under the OAuth settings
  6. Then click on app setting
  7. Change Application type as Read and write
  8. Finally update this twitter application's settings
  9. For getting access token, click on "Create my access token " under your access token. It provides Access token and an Access token secret string to sign requests with your own Twitter account
  10. Use the Consumer key and Consumer secret key for configuring Twitter ( Admin> Config > Web Services > Twitter)
  11. Thats all there is to it.

Hope that helps