To install Twitter App:
Go to Administration > Workspace > Apps.
as shown below:
Search Twitter under the Marketplace tab in Apps menu on your Rocket.Chat administration panel and install it.
You are notified about all the permissions the app would access. Click Agree.
The app is installed successfully.