title: How to specify ALBUM NAME + DESCRIPTION on photo upload, and NOT base it on APP name? (Facebook Timeline)
body: <p>I use this script here for my Facebook App.<br>
  It uploads a photo on a user's Facebook profile, and creates a new album for that photo.</p>
  
  <p>The script returns "<strong><em>[APP NAME]</em> Photos</strong>" as the Album name / title (without quotations).<br>
  - <strong><em>[APP NAME]</em></strong> being the name of my Facebook APP -</p>
  
  <p>Basically, I don't want that Album title. I want to specify an Album title on the script.<br>
  <strong>What I want is :</strong>  </p>
  
  <ul>
  <li><strong>... to be able to specify the Album's name / title to create, from the script.</strong></li>
  <li><strong>And if possible, specify Album description too.</strong></li>
  </ul>
  
  <p>This is the script -</p>
  
  <pre class="lang-php prettyprint-override"><code>    $root_url = "http://www.WEBSITE.COM/";
      $facebook = new Facebook($config);
      $user_id = $facebook-&gt;getUser();
  
        // Get image from URL
        $img = $_GET['i'];
        // Change location depending on which type of cover
        if($get_set != 1) {
        $photo = './PATH/'.$img.''; // Path to the photo on the local filesystem
        } else {
        $photo = './PATH/'.$img.'';
        }
        $message = 'THIS IS THE PHOTO CAPTION';
  
  
  
  
          if($user_id) {
  
            // We have a user ID, so probably a logged in user.
            // If not, we'll get an exception, which we handle below.
            try {
  
              // Upload to a user's profile. The photo will be in the
              // first album in the profile. You can also upload to
              // a specific album by using /ALBUM_ID as the path 
              $ret_obj = $facebook-&gt;api('/me/photos', 'POST', array(
                                               'source' =&gt; '@' . $photo,
                                               'message' =&gt; $message,
                                               )
                                            );
            //  echo '&lt;pre&gt;Photo ID: ' . $ret_obj['id'] . '&lt;/pre&gt;';
            print "&lt;script&gt;window.location = '".$root_url."index.php?cover=uploaded'&lt;/script&gt;";
  
            } catch(FacebookApiException $e) {
              // If the user is logged out, you can have a 
              // user ID even though the access token is invalid.
              // In this case, we'll get an exception, so we'll
              // just ask the user to login again here.
              $login_url = $facebook-&gt;getLoginUrl( array(
                             'scope' =&gt; 'photo_upload'
                             )); 
              echo '&lt;script&gt; window.location = "' . $login_url . '"; &lt;/script&gt;';
              error_log($e-&gt;getType());
              error_log($e-&gt;getMessage());
            }   
  
            echo '&lt;br /&gt;&lt;a href="' . $facebook-&gt;getLogoutUrl() . '"&gt;logout&lt;/a&gt;';
          } else {
  
            // No user, print a link for the user to login
            // To upload a photo to a user's wall, we need photo_upload  permission
            // We'll use the current URL as the redirect_uri, so we don't
            // need to specify it here.
            $login_url = $facebook-&gt;getLoginUrl( array( 'scope' =&gt; 'photo_upload') );
              echo '&lt;script&gt; window.location = "' . $login_url . '"; &lt;/script&gt;';
              //echo 'Please &lt;a href="' . $login_url . '"&gt;login&lt;/a&gt; to continue.';
  
          }
  </code></pre>
  
  <p>Seeing this one <strong><a href="http://developers.facebook.com/blog/post/498/" rel="nofollow">here</a></strong>, I am confident that is possible.</p>
  
  <pre class="lang-php prettyprint-override"><code>   $album_name = 'YOUR_ALBUM_NAME';
     $album_description = 'YOUR_ALBUM_DESCRIPTION';
  </code></pre>
  
  <p>I just don't know how to work it in there...<br>
  Looking forward to solutions. Thanks for your time!</p>