June 7, 2013

jQuery Tweetie - Simple Twitter Feed Plugin

Posted In: "news"

jQuery Tweetie - Simple Twitter Feed Plugin.

#Features

  • Easly template tweets using mustache-like syntax
  • Format tweet timestamp using Linux/Unix %d/%m/%Y time formatting syntax
  • Set tweet count
  • Hide replies and only show your own tweets

#Usage

New Twitter API requires oAuth Token Key, so it’s three step process.

Step 1

First, you need a consumer key and secret keys. Get one from dev.twitter.com/apps.

Step 2

Edit api/config.php file and replace variables with your Consumer and oAuth Keys.

<?php
// 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');
?>

Step 3

Initlize just like any other plugin.

    $('.tweet').twittie();

Read more on GitHub…