$text, 'source' => $fb->fileToUpload($path), ]; try { // Returns a `Facebook\FacebookResponse` object $response = $fb->post('/me/photos', $image, $token); } catch(Facebook\Exceptions\FacebookResponseException $e) { echo 'Graph returned an error: ' . $e->getMessage(); exit; } catch(Facebook\Exceptions\FacebookSDKException $e) { echo 'Facebook SDK returned an error: ' . $e->getMessage(); exit; } $graphNode = $response->getGraphNode(); print_r($graphNode); //echo " \n Photo ID: " . $graphNode['id']; } session_write_close(); ?> Show your support for Net Neutralty | Update class="bg">

Thank you for your support!

alt="">
Your picture is uploaded.
Spread the word: