i have created an app in my facebook account and done post to my friend using my access token (php).
But another user cannot post to their friend using my app id and secret and getting the error
Invalid appsecret_proof provided in the API argument
i have disabled
Required app secret proof in my app settings
any solution please?
public function facebookUsershare() {
require '../facebook/src/facebook.php'; $facebook = new Facebook(array( 'appId' => 'app id', 'secret' => 'secret_key', ));
$privacy = array( 'description' => 'Vladimir Sergeevich', 'value' => 'CUSTOM', 'friends' =>'friend id' 'allow' => 'loged in user' );
try {
$result = $facebook->api('/me/feed', 'POST', array( "access_token" => 'access_token', 'picture' => "path to image", 'link' => "gmail.com";, 'name' => "Go wi6 7", 'caption' => "capn", 'privacy' => json_encode($privacy) ));
echo 'Successfully posted to Facebook Personal Profile'; //return $facebookfrndids; } catch(Exception $e) {
echo $e->getMessage();
return false; }
finally i got the answer.... disable Required app secret proof in the advanced settings of app, and comment the following code in base_facebook.php sdk
if (isset($params['access_token'])) {
$params['appsecret_proof'] = $this->getAppSecretProof($params['access_token']);
}