I configured everything as stated botkit doc and facebook doc for app secret proof but I am getting the following error :
info: ERROR in messenger profile API call: API calls from the server require an appsecret_proof argument
info: ERROR in messenger profile API call: API calls from the server require an appsecret_proof argument
info: ERROR in messenger profile API call: API calls from the server require an appsecret_proof argument
Here is setup of the bot:
var controller = Botkit.facebookbot({
//debug: true,
verify_token: process.env.verify_token,
access_token: process.env.page_token,
// app_secret: process.env.app_secret,
// require_appsecret_proof: true, // Enable send app secret proof
studio_token: process.env.studio_token,
studio_command_uri: process.env.studio_command_uri,
});
Your app_secret and require_appsecret_proof configuration lines are commented out,
delete // in both lines.
I commented after it failing to work.
Can you share the exact code you used (without comments) ?
What's the value of process.env.app_secret var env ?
IT was my app secret code ... I have read the documentation again and find that I have to encrypt using hmac.... .
You don't need to encrypt using hmac, Botkit already do that for you !
Verify juste if your access token and app secret are ok
Most helpful comment
You don't need to encrypt using hmac, Botkit already do that for you !
Verify juste if your access token and app secret are ok