/ Published in: PHP
URL: http://css-tricks.com/snippets/php/get-latest-twitter-status/
via @kenrick1991
Expand |
Embed | Plain Text
<?php function getTwitterStatus($userid){ $url = "http://twitter.com/statuses/user_timeline/$userid.xml?count=1"; foreach($xml->status as $status){ $text = $status->text; } echo $text; } //my user id USERNAME getTwitterStatus("USERNAME"); ?>
Comments
Subscribe to comments
You need to login to post a comment.

is there a way to turn this into a link as well? (ie: http://twitter.com/blahblahuser/statuses/99999999)