I have a PHP app which interacts with facebook. I'm successfully able to post a photo to user wall , uswer timeline and to the wall of a facebook page, but when i try to post the same photo to facebook page timeline it throws an error "invalid appsecret_proof parameter". i commented out the code that tries to set the appsecret_proof in base_facebook.php file and then tried running the app it gave "The user hasn't authorized the application to perform this action" error. i have given 'photo_upload , publish_stream , publish_actions , manage_pages , user_photos' permissions to the app . i have set the access token of the page before making the following call
$ret_obj = $facebook->api ( '/page_id/feed' , 'POST' , array(
'source' => $photo ,
'message' => $message ,
'name' => 'vinay' ,
) );
how do i resolve this?
edit : i have also disabled the "Require AppSecret Proof for Server API calls" in the app advanced settings
page_id/photos
, notpage_id/feed
according to docs. – CBroe/album_id/photos
…? developers.facebook.com/docs/reference/api/album/#photos – CBroehow do i post to page album
. – Sahil Mittal