Skip to main content

Twitter

Setting up the Twitter stream

1 / Create a Twitter developer account and app

To show Twitter posts on your website you need a Twitter account and a Twitter developer account. You find a step-by-step guide here: Setting up the developer account/Twitter app.

Note

Since February 2023, tweets can no longer be read with the free Twitter API. You need at least the Basic plan for USD 100/month for the tweet import to work.

2 / Create a news archive

First create a news archive into which the Twitter posts will be imported. You have to specify a redirect page for the news archive because it is a mandatory field, although it is not relevant for the Social Feed bundle as there is no news detail page. Ideally, create a separate news archive for each Twitter account, so you can deselect individual accounts in the news list module later.

3 / Create an account

To create an account, click Create a new Social Feed account and select the type Twitter. A form opens where you enter all the required account data. After saving, it may take 2-3 minutes until all posts are imported.

  • API key: Found in the app details in the tab “Keys and tokens”.
  • API secret key: Found in the app details in the tab “Keys and tokens”.
  • Access token: Found in the app details in the tab “Keys and tokens”.
  • Access token secret: Found in the app details in the tab “Keys and tokens”.
  • Twitter account: Enter the name of the Twitter account, without @.
  • Search term: Instead of showing the posts of an account, you can also search for a specific term.
  • Maximum number of posts: The maximum number of posts imported at once.
  • News archive: Select the news archive into which the Twitter posts should be imported.
  • Cron job execution: Choose how often the cron job runs to import new Twitter posts. The options are: no cron job, every minute, hourly, daily, weekly and monthly.
  • Also import retweets: If you enable this checkbox, retweets are imported and shown as well.
  • Also import replies: If you enable this checkbox, replies are imported and shown as well.
  • Link hashtags and mentions: If you enable this checkbox, hashtags (e.g. #contao) and mentions (e.g. @pdirGmbH) are linked. For this, the template news_social_feed_extended must be selected in the news list module.
  • Last import: The two text fields for the last import only show when the last import took place.

4 / Create a module

The page Module setup contains everything else about creating and placing the module.

Nov 7, 2026 Spare Zeit bei allen Webprojekten mit pdir+

Subsections of Twitter

Twitter App

Setting up the Twitter developer account/app

Note

Since February 2023, tweets can no longer be read with the free Twitter API. You need at least the Basic plan for USD 100/month for the tweet import to work.

Create a developer account

1 / Open the Twitter developer website

Open https://developer.twitter.com/en/apply-for-access and click Apply for a developer account. Log in with your Twitter account, or sign up if you don’t have a Twitter account yet.

A page opens where you choose why you want to use the Twitter developer tools. Select Doing something else.

2 / Select the country

Select the country and enter a name for the developer account.

3 / App usage

Now describe how the Twitter API will be used.

Fill in the first input field, for example with this text, or describe it in your own words.

The twitter api will be used to show posts belonging to a page or a hashtag and information about the posts creator on the own website. The posts and images will be written directly into the website database and will be showed on the website.

For “Do you plan to display Tweets or aggregate data about Twitter content outside of Twitter?” you could enter the following text.

The posts will be shown on the own website with the post image, text, post creator and profile image.

All other input fields are not relevant, you can disable them.

4 / Review

Review the data you entered and click Looks good!

5 / Complete the registration

Accept the Developer Agreement and click Submit Application. You should then receive a confirmation email. Click the confirmation link in this email to complete the registration of the developer account.

6 / Create an app

You can create a new app on this page: https://developer.twitter.com/en/apps.

Fill in the following fields:

  • App name: Any name for the app (it must not have been taken by another user).
  • Application description: A short description of the app, e.g. Show posts from twitter on the own website.
  • Website URL: The URL of your website.
  • Tell us how this app will be used: Describe how the app will be used. You can paste the text from above, for example.

Once the app has been created, a new page with the app details should open. Click Keys and tokens in the navigation at the top. There you can see the API key, API secret key, access token and access token secret that you need to read the Twitter posts. To see the access token and access token secret the first time, click Generate.