Advertising sustains the DA. Ads are hidden for members. Join today

Installation & Configuration

Last updated on
13 August 2022

Installation

  • Download the module either manually, with the Project Browser or with Composer (recommended):
    composer require drupal/twitter_api_block
     
  • Activate the module:
    drush en twitter_api_block

Configuration

  1. Log in the Twitter developer platform
    Create a project and create an application inside
    Copy the project's client_id and and client_secret
     
  2. Back in Drupal, create a new key under Admin > Configuration > System > Keys
    Select Twitter API as the key type
    Paste the credentials and save

     

  3. Go to Admin > Structure > Block layout
    Place a new Twitter search block
    Enter the query you want to display tweets for and save

Help improve this page

Page status: No known problems

You can: