title: how to tag random friend upload picture
body: <p>I wanted to know how I tagged random friends when I bring up an image with this code
  This code opens an album and uploads an image.</p>
  
  <p>If someone here can help me what to change, and add code"</p>
  
  <p>Thank you</p>
  
  <pre><code>&lt;?php
      require 'facebook.php';
      $facebook = new Facebook(array(
          'appId'  =&gt; '',
          'secret' =&gt; '',
          'cookie' =&gt; true,
      ));
  
      $user = $facebook-&gt;getUser();
      if ($user) {
          $facebook-&gt;setFileUploadSupport(true);
  
          //Create an album
          $album_details = array(
              'message'=&gt; 'Album desc',
              'name'=&gt; 'Album name'
          );
          $create_album = $facebook-&gt;api('/me/albums', 'post', $album_details);
  
          //Get album ID of the album you've just created
          $album_uid = $create_album['id'];
  
          //Upload a photo to album of ID...
          $photo_details = array(
              'message'=&gt; 'Photo message'
          );
          $file='images/logo.jpg'; //Example image file
          $photo_details['image'] = '@' . realpath($file);
  
          $upload_photo = $facebook-&gt;api('/'.$album_uid.'/photos', 'post', $photo_details);
      }
  
  ?&gt;
  </code></pre>