Hello,
I am trying to upload photo to facebook through my facebook app.
Here is my code:
$photo_details = array(
'message'=> 'my photo'
);
$file = "http://upload.wikimedia.org/wikipedia/commons/thumb/8/81/Waves_lajolla.jpg/300px-Waves_lajolla.jpg";
$photo_details['image'] = '@'.realpath($file);
try {
$upload_photo = $facebook->api('/'.'almbumId'.'/photos', 'post', $photo_details);
} catch (FacebookApiException $e) {
echo 'Error'.$e;
error_log($e);
}
but it always gives me
CurlException: 26: failed creating formpost data