Twitter plugin will grab your latest tweets and display them on page.
To setup this plugin just edit twitter/config.php file in your HTML folder.
1 2 3 4 5 6 7 8 9 |
$config = array( 'username' => "XXX", //username 'limit' => 3, //how many tweets we would like to display? 'with_replies' => true, //show replies? true or false 'oauth_access_token' => 'TOKEN', 'oauth_access_token_secret' => 'TOKEN_SECRET', 'consumer_key' => 'KEY', 'consumer_secret' => 'KEY_SECRET', ); |
Where can I get these keys, tokens, etc ?
Twitter API requires authentication to display tweets from your account.
In order to make twitter feed work you need to create the ‘application’
and generate 4 special keys for your twitter account via https://dev.twitter.com/apps:
- Consumer key (key)
- Consumer secret (secret)
- Access token (token)
- Access token secret (token_secret)
Video tutorial : “How to create a Twitter App”