Facebook picture uploader (fanpage)
This is my code and I tried to "Curl" it ( file_get_contents didn't work for some reason) but since i can't really get Curl to work, I came here to get some help. I've been suffering with this for 10 hrs now and I still can't find out!!! please help!! <?php $app_id = "xxxxx"; $app_secret = "xxxxx"; $fanpage_id ='3xxxxx'; $post_login_url = "xxxxxxxxxteszt.php"; $photo_url = "xxxxxxxxxx20130412104817.jpg"; $photo_caption = "sasdasd"; $code = $_REQUEST["code"]; //Obtain the access_token with publish_stream permission if (!$code) { $dialog_url= "http://www.facebook.com/dialog/oauth?" . "client_id=