Botkit: ERROR in messenger profile API call: API calls from the server require an appsecret_proof argument

Created on 4 Feb 2018  路  5Comments  路  Source: howdyai/botkit

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,
});
Facebook-related help wanted

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

All 5 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JonnyBoy333 picture JonnyBoy333  路  3Comments

HannanShaik picture HannanShaik  路  3Comments

abinashmohanty picture abinashmohanty  路  4Comments

liornaar picture liornaar  路  3Comments

imjul1an picture imjul1an  路  3Comments