Hey Twitter Developers.

I've had a bit om a problem with my "home made" twitter feed plugin
for my website, sometimes it just wont load the feed for like 30
minutes and then it starts working again. Is there any of you familiar
with this kind of error?
$user = "andreasvoss";
$url = "http://twitter.com/statuses/user_timeline/".$user.".json";;
$json = file_get_contents($url);
$data = json_decode($json);

foreach($data as $val){
        $screen_name = $val->user->screen_name;
        $tweet = $val->text;
        $date = strtotime($val->created_at);
              <span class="name">@<?php echo $screen_name; ?></
              <span class="update"><?php echo $tweet; ?></span><br>
              <span class="time">for <?php echo $date; ?></

Kind regards Andreas Voss

Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 

Reply via email to