title: Send Facebook App Request/Invite using Graph Api
body: <p>I have the following code that would get ur friends list using graph api</p>
  
  <pre><code>function getFriendsList(){
  
      $response = $this-&gt;api('/me/friends'); 
       return $response;
  
      }
  </code></pre>
  
  <p>This returns friends id and name. using graph api</p>
  
  <p>I then execute this code in my joomla module:</p>
  
  <pre><code>$fbClient = JFBConnectFacebookLibrary::getInstance();
  $fbUserId = $fbClient-&gt;getUserId(TRUE);   
  
  //If FB User
  if($fbUserId){
  
  $f_list = $fbClient-&gt;getFriendsList();
  </code></pre>
  
  <p>after i get the array i display the firends picture</p>
  
  <pre><code>foreach ($f_list as $friend) {
      for($i = 0; $i &lt; count($friend); $i++)
          { 
  
          echo '&lt;img src="http://graph.facebook.com/'.$friend[$i]['id'].'/picture"&gt;&lt;br/&gt;';
          }
     }
  
  }
  </code></pre>
  
  <p>This would create the profile photos of my friends. </p>
  
  <p>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. ???</p>