Simple jQuery Plugin for Displaying Twitter Feed - Tweetie
File Size: | 29.9 KB |
---|---|
Views Total: | 22004 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |
Tweetie is a simple and customizable jQuery plugin for fetching, formatting and displaying your twitter's feed and using new Twitter 1.1 API.
See also:
- Simple jQuery Plugin for Displaying Recent Tweets - jtwt.js
- jQuery Plugin for Displaying Recent Tweets - tweed
- jQuery Powered Recent Tweets Widget - ClassyTwitter
How to use it:
1. Get a consumer key and secret keys from Twitter developer center
2. Edit api/config.php
file and replace variables with your Consumer and oAuth Keys.
// Consumer Key define('CONSUMER_KEY', 'CONSUMER_KEY_HERE'); define('CONSUMER_SECRET', 'CONSUMER_SECRET_HERE'); // User Access Token define('ACCESS_TOKEN', 'ACCESS_TOKEN_HERE'); define('ACCESS_SECRET', 'ACCESS_SECRET_HERE');
3. Include jQuery library and jQuery Tweetie plugin on the web page
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script type="text/javascript" src="twittie.min.js"></script>
4. Create the html for the twitter feed widget
<div class="tweet"></div>
5. Call the plugin with options
<script class="source" type="text/javascript"> $('.tweet').twittie({ list: null, hashtag: null, dateFormat: '%b. %d, %Y', // date format template: '{{tweet}} <div class="date">{{date}}</div>', // Format how you want to show your tweets. count: 1, // Number of tweets you want to display. hideReplies: true, // Hide replies and only show your own tweets username: null, // Option to load tweets from another account. apiPath : 'api/tweet.php' }); </script>
Change logs:
2018-03-28
- fixed the property selection
2016-08-09
- Fix list parameter
2014-11-05
- Disabled cache by default
2014-05-08
- minify tweetie.js with hashtag functionality
2014-05-07
- allowing hashtag search
2014-04-02
- Added ability to fetch tweets from a specific list.
2014-02-12
- Fixed the username and hashtags regex
2014-01-30
- Added "retweeted" template tag
- Added username option that allows to pull tweets from any account.
2013-08-01
- Using Twitter's API to filter replies
This awesome jQuery plugin is developed by sonnyt. For more Advanced Usages, please check the demo page or visit the official website.