How to Display Twitter Posts with the new 1.1 Api - jQuery script
Many of you might have not heard about the lattest Twitter api changes but not all of you got ready on time right?
We will see how to create an easy plugin in order to draw lattest Twiteer posts from an account.
First of all, due to the lattest changes indroduced from Twitter team OAuth is required in order to validate the user or script, more info here: https://dev.twitter.com/docs/auth
You can find the hole procedure here: http://www.slideshare.net/Tweetganic/generate-twitter-applications
In a few worlds you need to create a Twitter application on the page: https://dev.twitter.com/apps/new
With your Unique namespace and custom options and once you have your Access Tokens you are good to go!
Now all we need in order to get the latest Tweets from our page is use the function GET Statuses / usertimeline https://dev.twitter.com/docs/api/1.1
So we create our custom javascript function named getTweets witch uses in this case jQuery library and codebird framework https://github.com/mynetx/codebird-js
After having this hole function, all we have to do is execute a jquery script on page load placing it where we please.
You can find the hole script attached, enjoy!
- jquery.getTweets.1.1.zip (3849 Downloads)