What is wrong with my php code ?10 points for the right answer?

Lovin' life

New member
Ok, so I am trying to pull my list of friends from twitter using the Twitter API with PHP , I got this code from git hub and I am ALSO very familiar with PHP but for some reason , it is not displaying my friends from twitter .. Could you please tell me where I might have done wrong ? thanks a bunch
<?php
include 'lib/EpiCurl.php';
include 'lib/EpiOAuth.php';
include 'lib/EpiTwitter.php';
include 'lib/config.php';

$twitterObj = new EpiTwitter($consumer_key, $consumer_secret, $_COOKIE['oauth_token'], $_COOKIE['oauth_token_secret']);

$twitterInfo= $twitterObj->get_statusesFriends();
echo "<h1>Your friends are</h1><ul>";
try{
foreach($twitterInfo as $friend) {
echo $friend->screen_name;
}
}catch(EpiTwitterException $e){
echo $e->getMessage();
}
?>
 
Back
Top