The Best Way to Add a Twitter Feed to Your Page

December 3, 2012

As you might have discovered, Twitter can be one of the most frustrating things to work with. Not only are the plugins all different from each other, but they each have their own quirks. Then, to make matters even more interesting, Twitter occasionally updates their API, which means that you are stuck with a broken plugin. For this reason, the best plugin is prone to change from time to time.

The seaofclouds plugin gives you a lot of options, displays your avatar, and allows you to customize your segueway between the date and the tweet. Here’s the link: tweet.seaofclouds.com

At any rate, you will need only a few lines of code once you have included your jquery.tweet.js file.

jQuery(function($){
    $(".tweet").tweet({
       join_text: "auto",
       username: "[your username here]",
       avatar_size: 48,
       count: 3,
       auto_join_text_default: " we said, ",
       auto_join_text_ed: " we ",
       auto_join_text_ing: " we were ",
       auto_join_text_reply: " we replied ",
       auto_join_text_url: " we were checking out ",
       loading_text: "loading tweets..."
    });
});

Then just add a twitter div to your code like this:

<div id="twitter"></div>

Author

Stay in Touch!

Stay in Touch!
Solutions Architecture

browse through our blog articles

Blog Archive