I am using the old Facebook API ... need this code to check to see if an album exists and to add to it if it does instead of creating another with the same name.
IMPORTANT!!! Please send me a link to an example app you have created that does this before bidding. If you link me anything else I won't look at your bid. I will need the code asap I don't want to sit and wait for someone to write it.
$albums = $facebook->api('/me/albums/');
$create_album = $facebook->api('/me/albums', 'post', $album_details);
$album_uid = $create_album['id'];
$photo_details = array(
'message'=> 'album name'
$photo_details['image'] = '@' . realpath($file);
$upload_photo = $facebook->api('/'.$album_uid.'/photos', 'post', $photo_details);