OSDN Git Service

embrj
[embrj/master.git] / ajax / updateFollowing.php
1 <?php
2         if(!isset($_SESSION)){
3                 session_start();
4         }
5         include('../lib/twitese.php');
6
7         $t = getTwitter();
8         $skip_status = false;
9         $friends = $t->friends(false, false, $skip_status)->users;
10         $html = '';
11         foreach($friends as $friend){
12                 $html .= '<span class="vcard">
13                         <a class="url" title="'.$friend->name.'" rel="contact" href="../user.php?id='.$friend->screen_name.'">
14                         <img class="photo fn" width="24" height="24" src="'.getAvatar($friend->profile_image_url).'" alt="'.$friend->name.'" />
15                         </a>
16                         </span>';
17         }
18         echo $html;
19 ?>