Take the 2-minute tour ×  //Create an album $album_details =
array(         'message'=> 'How will you die?',         'name'=>
'How will you die?'  //Get album ID of the album you've just
created $album_uid = $create_album['id'];  //Upload a photo to
album of ID...  $file='img/'.$fbid.'.jpg'; //Example image file
$photo_details = array( 'message'=> 'Find...51', 'image' =>
'@'.realpath($file));  $upphoto = $upload_photo['id']; print_r
($upphoto);  ImageDestroy( $canvas );  header("Location:
http://www.facebook.com/" . urlencode($fbid) . "&photoid=" .
urlencode($upload_photo['id']));   I am using this code to
create a album and upload a photo in users profile on facebook
with the help of facebook app. But again and aain , repeatedly i
am getting three (3) errors    1. Warning: imagejpeg()
[function.imagejpeg]: Unable to open 'img/100001326588945.jpg'
for writing: No such file or directory in
/home/a2424901/public_html/index.php on line 58    2.
curl_setopt_array() [function.curl-setopt-array]: open_basedir
rest