Class 'CURLFile' not found
PHP-Code:
if($session) {
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
$response = (new FacebookRequest(
$session, 'POST', '/me/photos', array(
'source' => new CURLFile('Bilderordner/Desert.jpg', 'image/jpg'), // <- wird nicht gefunden
'message' => 'Waste'
)
))->execute()->getGraphObject();
// If you're not using PHP 5.5 or later, change the file reference to:
// 'source' => '@/path/to/file.name'
echo "Posted with id: " . $response->getProperty('id');
} catch(FacebookRequestException $e) {
echo "Exception occured, code: " . $e->getCode();
echo " with message: " . $e->getMessage();
}
}
Was muss ich installieren damit es funktioniert oder was fehlt da
PHP Version 5.4.16 müsste ja kein Problem sein
Kommentar