Display latest tweets on your website

Posted by saurabh On March - 5 - 2010
        ('DiggThis)           SocialTwist Tell-a-Friend     
VN:F [1.9.1_1087]
Rating: +1 (from 1 vote)

Latest tweets can be displayed on websites by using JavaScript libraries and JSON. However, same can be done without JavaScript or JSON by using php based feed framework to fetch the latest tweet data from your public twitter stream.

  • Download the zipped file.
  • Open twitter.php in a text editor and change the twitter username.

// twitter username
$twitter_user="techwhiz09";

  • Change the setting for the number of latest tweets to be fetched. It can fetch maximum 4 latest tweets from your public stream.

// number of latest tweets to be fetched (1 to 4)
$tweets_num=4;

  • Upload the files on the server and point your browser to ‘twitter.php’image
VN:F [1.9.1_1087]
Rating: +1 (from 1 vote)
-->
Related Posts:
blog comments powered by Disqus

The mind acts like an enemy for those who do not control it. — Bhagvad Gita