I have the following code that would get a list of cheers friends using api chart
function getFriendsList(){ $response = $this->api('/me/friends'); return $response; }
This returns the id and name of friends. using api chart
Then I execute this code in the joomla module:
$fbClient = JFBConnectFacebookLibrary::getInstance(); $fbUserId = $fbClient->getUserId(TRUE); //If FB User if($fbUserId){ $f_list = $fbClient->getFriendsList();
after i get the array i will show firends image
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 will create profile pictures of my friends.
My question is how to create onlick, even if I click on the photo, I can send an individual request to the facebook application. ???
ivias source share