a nie z pliku wyslanego wczesniej w formularzu.
czy moglibyscie co nieco podpowiedziec?
dzieki z gory
<html> <body> <form enctype="multipart/form-data" action="upload.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> Please choose a photo: <input name="photo" type="file"><br/><br/> Say something about this photo: <input name="message" type="text" value=""><br/><br/> <input type="submit" value="Upload"/><br/> </form> </body> </html> <?php //upload.php include_once 'fbmain.php'; try{ $uid = $facebook->getUser(); $me = $facebook->api('/me'); $token = $session['access_token'];//here I get the token from the $session array $album_id = '2179901265385';//MY ALBUM ID $facebook->setFileUploadSupport(true); $data = $facebook->api('/'. $album_id . '/photos?access_token='. $token, 'post', $args); } catch(FacebookApiException $e){ } } else { } } ?>