i am having another issue not sure why but my implode snippet has the correct parameters as it was stated on php.net but when i display it in php i get this error
Warning: implode() [function.implode]: Invalid arguments passed in /home/willbcco/public_html/facebook/invte.php on line 24
Now this is my php code
$friends = $facebook->api_client->friends_get();
echo "<p>Hello ".$F_user.", you have ".count($friends)." friends";
foreach($friends as $friend)
{
$infos.=$friend.",";
}
//
$friends = implode(',', $friends);
//
$infos = substr($infos,0,strlen($infos)-1);
$friends_info = $facebook->api_client->users_getInfo($infos,'first_name','uid');
foreach($friends_info as $user)
{
$fn=$user['first_name'];
$u=$user['uid'];
}
$mates = implode(',',$u);
echo $mates;
Line 24 is this
$mates = implode(',',$u);
What am i doing wrong?
Thanks,William