I have the following code that would get ur friends list using graph api
function getFriendsList(){
$response = $this->api('/me/friends');
return $response;
}
This returns friends id and name. using graph api
I then execute this code in my joomla module:
$fbClient = JFBConnectFacebookLibrary::getInstance();
$fbUserId = $fbClient->getUserId(TRUE);
//If FB User
if($fbUserId){
$f_list = $fbClient->getFriendsList();
after i get the array i display the firends picture
foreach ($f_list as $friend) {
for($i = 0; $i < count($friend); $i++)
{
echo '<img src="http://graph.facebook.com/'.$friend[$i]['id'].'/picture"><br/>';
}
}
}
This would create the profile photos of my friends.
My question is how do i create an onlick even so that when i click the photo i can send an individual facebook app request. ???