I have a problem regarding the Facebook API. I've created an application "Screenshot Submission", from the concept of submitting the screenshot, the scenario is:
- After the users allows my application.
- The user will select a file to upload on the application using form then submit it.
I want to upload the selected file(image/photo) to his/her album(auto generated from application) and post the file(image/photo) to his/her wall.
$photo_details = array('message'=>$_REQUEST['arttitle'],'source'=> '@' . realpath($_FILES[file]tmp_name])); $facebook->api('/me/photos','POST',$photo_details);
The above code will upload photo to the autogenerated album, and returns an array like:
Array([id]=1234567890)
Now, how can post the uploaded file(image/photo) to his/her wall using php.sdk and graph api.
Any help would be appreciated. Thanks.