Adding Single Line Tweet to Webpage [closed]
-
08-10-2019 - |
Question
I am working on a website for a client, he wants his tweets at the top of the page. I am confused as to how this is going to work. I have been working with some 3rd party stuff, but no success.
This is the page I am working on: http://whiterhino.us/jason_tanzer/template.html
This is how I want it to look/work: http://whiterhino.us/jason_tanzer/sample.html
Any Help would be Great!
Solution
This simplest way to do it is using this:
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/username.json?callback=twitterCallback2&count=2"></script>
Just replace "username" with the client's username and the count to however many tweets you want to display. The style with CSS and you are done!
OTHER TIPS
Did this the other day. You probably want to use a library for this to make things easier. First get his twitter JSON feed (http://twitter.com/status/user_timeline/.json?count=10&callback=?) using Jquery's getJSON(). Process the returned data accordingly.