This script can be used to show Twitter feeds on your website. The script uses AJAX and PHP to display the Twitter data on your website.
The script makes use of the Twitter REST API v1.1, which requires OAuth authentication to retrieve data. Version 1.0 of the Twitter API did not require authentication and has been retired by Twitter on June 11 of 2013. So all scripts that rely on version 1.0 of the Twitter API and do not use OAuth authentication stopped working after Twitter retired version 1.0 of their API. But this script still works!
The script also provides a default stylesheet for the output of the Twitter data. You can use this directly in your website, or use it as a basis for your own styling.
Default implementations are provided for the most-used Twitter data:
- Home timeline
- User timeline
- Mentions timeline
- Retweets of me
But the script can also display other data that can be retrieved via the Twitter API, however, this requires some more configuration. But this is all covered in the documentation provided with this script.
The script works with a minimal amount of configuration, but it is also highly customizable:
- Display multiple widgets
- Display time elapsed since tweets or actual date/time of a tweet
- Date/time formatting if actual date/time of a tweet are shown
- Auto refresh
- Templating for full control of the HTML output of the script