My App trying to uploading a dynamic photo (created by GD + pulling data from MySQL database) so the photos don't statically exist in the directory and for so I get this error :
Fatal error: Uncaught CurlException: 26: failed creating formpost data thrown in
Let's say I'm trying to upload www.mywebsite.com/223.jpg
which is dynamic photo you can see it by checking this url directly or calling it as image but If I tried to use it in my Facebook App it wouldn't upload. If I downloaded to photo to my PC then uploaded to my ftp the App would upload it successfully. So I'm sure that my code is working just fine but the problem is with being Dynamic photo (doesn't actually exist in my website ftp).
Please let me know how can I solve this problem.
Thanks for your time.
$photo_details = array(
$file = "$_GET[id].png";
$photo_details['image'] = '@/home/username/public_html/files/' . $file;
$upload_photo = $facebook->api('/'.$album_uid.'/photos', 'post', $photo_details);