Sunday, March 24, 2013

How to Integrate Twitter into your Website



With jTweetsAnywhere, its very simple. Its powered by jQuery.

Step 1
Download the Zip package from here and extract them.

Step 2
Link these to your web page header.

<script src="javascripts/jquery.js" type="text/javascript"></script>
<script src="javascripts/jquery.jtweetsanywhere.js" type="text/javascript"></script>
<script src="javascripts/jtweetsanywhere-de-min.js" type="text/javascript"></script>
<link href="stylesheets/jquery.jtweetsanywhere.css" rel="stylesheet"></link>

Step 3
Set this to document.ready function

$(document).ready(function(){
    $('#your-twitter-div-id').jTweetsAnywhere({
        username: 'your-twitter-username',
        count: 5, //how many tweets you wants to show
        showTweetFeed: {
            /*showProfileImages: true,
            showUserScreenNames: true,
            showUserFullNames: true,*/
            showActionReply: true,
            showActionRetweet: true,
            showActionFavorite: true
  },
 });
});
You can customize the CSS file as you like. Simple, isn't it? :)

No comments:

Post a Comment