This extension uses the Twitter v2 API to download and display tweets.
To use the Twitter API, you need a developer account, register your application and obtain
- consumer key
- consumer secret
- api key
- api secret
-
Install via composer
composer require xima/xima-twitter-client
-
Include TypoScript setup + constants
@import 'EXT:xima_twitter_client/Configuration/TypoScript/setup.typoscript'
-
Include PageTS
@import 'EXT:xima_twitter_client/Configuration/TSconfig/page.tsconfig'
-
Enter the credentials in extension configuration
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['xima_twitter_client']['access_key'] = '', $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['xima_twitter_client']['access_secret'] = '', $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['xima_twitter_client']['api_key'] = '', $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['xima_twitter_client']['api_secret'] = '', $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['xima_twitter_client']['image_storage'] = '1:Images/Twitter',
- Create a new SysFolder that includes the module "twitter"
- Add a new "Account" record inside this folder
- Enter a Twitter account name you want to fetch tweets from
To start the download, run this command:
vendor/bin/typo3cms twitter:fetchTweets
To output a Twitter feed, add the new custom content element "Twitter" to any page: