There are many great Joomla extensions which allow you to integrate your Joomla website with Twitter in various ways. Some of these extensions use Twitter widgets and do not require any authorisation however, some connect directly with the Twitter API. Our own JB:TwitterFeed module is an example of a module that interacts directly with the Twitter API to obtain recent tweets from a user's feed.

In order to make authorized calls to Twitter's APIs, an extension must first obtain an OAuth access token on behalf of a Twitter user or it may also issue Application-only authenticated requests when user context is not required. Twitter does not allow unauthorised requests to the API, and it also enforces limits on the rate of requests.

For this reason, most Joomla extensions that offer Twitter integrations will ask you to enter your own Twitter API keys and access tokens.

To obtain these credentials you'll need to create your own Twitter application however, you shouldn't be daunted by this. It's free, and only takes 5 minutes. We're going to give you a step by step guide to creating a Twitter application, and accessing your:

  • Consumer Key (API Key)
  • Consumer Secret (API Secret)

If you need them, you can also generate your:

  • Access Token
  • Access Token Secret

#1 Visit the Twitter Application Management page

Head over to apps.twitter.com, which is the page where you can create and manage your Twitter applications.

#2 Login with your Twitter account

Login with your existing Twitter account. If you don't already have a Twitter account, then you'll need to create one first.

#3 Click the 'Create New App' button

#4 Enter Application Details

It isn't important what Name, Description or Website you enter into the Application Details but you should keep things relevant so your applications are easy to manage later.

#5 Accept the Developer Agreement

You'll need to accept the Twitter development agreement.

#6 Visit the 'Keys and Access Tokens' tab

Once you have accepted the agreement then your application will be create, and you can visit the Keys and Access Tokens tabs to immediately access the Consumer Key (API Key) and Consumer Secret (API Secret).

#7 If you need access tokens, click 'Create my access token' button

Depending on the access which is required by the Joomla extension it may also ask for access tokens. You can generate these by clicking on the Create my access token button.

Your Access Token and Access Token Secret will then be available to you.

Remember that the access tokens will give your new application permission to use your own Twitter account.

#8 Review, Revoke, Regenerate

Review: Visit all tabs in the application management page and review all settings to ensure you're happy with the settings.

Revoke: If you don't need to grant your application access to your own account then you should revoke your access token.

Regenerate: If you believe your consumer key or secret, or your access tokens have been compromised, either by a hacked website or otherwise then you should regenerate your keys, tokens and secrets.