A SilverStripe widget for showing the latest tweets from a named Twitter account (works with the new v1.1 API)
PHP CSS Scheme
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
libs
README.md
_config.php
composer.json
latestTweetsWidget.php
latestTweetsWidget.ss

README.md

Note: This widget works with the new Twitter API v1.1

Latest Tweets SilverStripe widget

This SilverStripe widget shows the latest tweets from a named Twitter account.

It makes use of tmhOAuth, an OAuth 1.0A library specifically for use with the Twitter API: https://github.com/themattharris/tmhOAuth

To use the widget you will also need to create a Twitter App: https://dev.twitter.com/apps

Installation & Usage

Simply rename the folder to widget_latesttweets (that bit is important), drop it into the root directory of your SilverStripe site and run a /dev/build. You will then see the widget in your list of available widgets.

You will need the SilverStripe Widgets module installed and a widget area in your template.

Because the new Twitter API v 1.1 requires all calls to be authenticated you will also need to create a Twitter app in order to create the neccessary access tokens.

Screenshots

Front-end:

Latest tweets widget - Frontend screen grab

Admin:

Latest tweets widget - SilverStripe admin

Requirements

License

Feel free to use this as you like.