So, mache dann einfach mal einen neuen Threadauf.
Ich hab ein kleines Problem mit meinem Script, das ein Album erstellen und dort Bilder hochladen soll.
Mein Bild wird erstellt und auch auf MEINEM Server gespeichert....jetzt kommt wie gesagt noch die Erstellung des Albums und der Upload auf Facebook...
das klappt nicht...
Ich habe folgenden Code...
Das Bild wird auf meinem Server gespeichert und auf dem Bildschirm ausgegeben. So weit, so gut....PHP-Code:$path = 'picture/pic'.$user.''.$zufall.'.png';
imagepng ($img, $path);
imagedestroy($img);
echo "<p align=\"center\"><img border=\"0\" src=\"$path\"></p>";
echo "<br> $path";
//At the time of writing it is necessary to enable upload support in the Facebook SDK, you do this with the line:
$facebook->setFileUploadSupport(true);
//Create an album
$album_details = array('message'=> 'Album desc','name'=> 'Chartstuermer');
$create_album = $facebook->api('/me/albums', 'post', $album_details);
//Get album ID of the album you've just created
$album_uid = $create_album['id'];
//Upload a photo to album of ID...
$photo_details = array('message'=> 'Test-Nachricht');
$file='$path';$photo_details['image'] = '@' . realpath($file);
$upload_photo = $facebook->api('/'.$album_uid.'/photos', 'post', $photo_details);
Nur dann kommt folgende Fehlermeldung, die ich nicht verstehe...
Kann mir da jemand Hilfestellung geben?


LinkBack URL
About LinkBacks






Zitieren
Lesezeichen