What is secret key in botpress framework [v10.51.1] for messenger bot












0















I have connected my bot to my Facebook page using ngrok. And I filled up the access token, application ID and app secret accordingly. Access Token is the token generated by Facebook, Application ID is my app id and app secret is what I have given (1234567 right now). I don’t know whats Verify Token is! So, I have put the access token on verify token as well. Every time I start the Botpress app, it shows the following message.



{ message: 'An error has been returned by Facebook API.nStatus: 400 (Bad Request)nError validating client secret.',

stack: 'Error: An error has been returned by Facebook API.nStatus: 400 (Bad Request)nError validating client secret.n at /home/a_o/projects/truck-kothay-bot/node_modules/@botpress/channel-messenger/bin/webpack:/src/messenger.js:594:15n at PassThroughHandlerContext.finallyHandler (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/finally.js:56:23)n at PassThroughHandlerContext.tryCatcher (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/util.js:16:23)n at Promise._settlePromiseFromHandler (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/promise.js:512:31)n at Promise._settlePromise (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/promise.js:569:18)n at Promise._settlePromise0 (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/promise.js:614:10)n at Promise._settlePromises (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/promise.js:694:18)n at _drainQueueStep (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/async.js:138:12)n at _drainQueue (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/async.js:131:9)n at Async._drainQueues (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/async.js:147:5)n at Immediate.Async.drainQueues (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/async.js:17:14)n at runCallback (timers.js:794:20)n at tryOnImmediate (timers.js:752:5)n at processImmediate [as _immediateCallback] (timers.js:729:5)' }


My Botpress framework is running in 10.51.1 and node is > 8 and < 11.
This is my channel-messenger config file



"applicationID": "App ID from facebook",
"accessToken": "Access Token from Facebook",
"appSecret": "1234567",

"verifyToken": "What this verify Token is for?",
"hostname": "http://ab97a8db.ngrok.io/",


Botpress Website url: https://botpress.io/



I used the last version, this verifies token option was not there then. I never coded in Javascript, I am just upgrading someone else codebase. TIA










share|improve this question





























    0















    I have connected my bot to my Facebook page using ngrok. And I filled up the access token, application ID and app secret accordingly. Access Token is the token generated by Facebook, Application ID is my app id and app secret is what I have given (1234567 right now). I don’t know whats Verify Token is! So, I have put the access token on verify token as well. Every time I start the Botpress app, it shows the following message.



    { message: 'An error has been returned by Facebook API.nStatus: 400 (Bad Request)nError validating client secret.',

    stack: 'Error: An error has been returned by Facebook API.nStatus: 400 (Bad Request)nError validating client secret.n at /home/a_o/projects/truck-kothay-bot/node_modules/@botpress/channel-messenger/bin/webpack:/src/messenger.js:594:15n at PassThroughHandlerContext.finallyHandler (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/finally.js:56:23)n at PassThroughHandlerContext.tryCatcher (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/util.js:16:23)n at Promise._settlePromiseFromHandler (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/promise.js:512:31)n at Promise._settlePromise (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/promise.js:569:18)n at Promise._settlePromise0 (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/promise.js:614:10)n at Promise._settlePromises (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/promise.js:694:18)n at _drainQueueStep (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/async.js:138:12)n at _drainQueue (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/async.js:131:9)n at Async._drainQueues (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/async.js:147:5)n at Immediate.Async.drainQueues (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/async.js:17:14)n at runCallback (timers.js:794:20)n at tryOnImmediate (timers.js:752:5)n at processImmediate [as _immediateCallback] (timers.js:729:5)' }


    My Botpress framework is running in 10.51.1 and node is > 8 and < 11.
    This is my channel-messenger config file



    "applicationID": "App ID from facebook",
    "accessToken": "Access Token from Facebook",
    "appSecret": "1234567",

    "verifyToken": "What this verify Token is for?",
    "hostname": "http://ab97a8db.ngrok.io/",


    Botpress Website url: https://botpress.io/



    I used the last version, this verifies token option was not there then. I never coded in Javascript, I am just upgrading someone else codebase. TIA










    share|improve this question



























      0












      0








      0








      I have connected my bot to my Facebook page using ngrok. And I filled up the access token, application ID and app secret accordingly. Access Token is the token generated by Facebook, Application ID is my app id and app secret is what I have given (1234567 right now). I don’t know whats Verify Token is! So, I have put the access token on verify token as well. Every time I start the Botpress app, it shows the following message.



      { message: 'An error has been returned by Facebook API.nStatus: 400 (Bad Request)nError validating client secret.',

      stack: 'Error: An error has been returned by Facebook API.nStatus: 400 (Bad Request)nError validating client secret.n at /home/a_o/projects/truck-kothay-bot/node_modules/@botpress/channel-messenger/bin/webpack:/src/messenger.js:594:15n at PassThroughHandlerContext.finallyHandler (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/finally.js:56:23)n at PassThroughHandlerContext.tryCatcher (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/util.js:16:23)n at Promise._settlePromiseFromHandler (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/promise.js:512:31)n at Promise._settlePromise (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/promise.js:569:18)n at Promise._settlePromise0 (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/promise.js:614:10)n at Promise._settlePromises (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/promise.js:694:18)n at _drainQueueStep (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/async.js:138:12)n at _drainQueue (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/async.js:131:9)n at Async._drainQueues (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/async.js:147:5)n at Immediate.Async.drainQueues (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/async.js:17:14)n at runCallback (timers.js:794:20)n at tryOnImmediate (timers.js:752:5)n at processImmediate [as _immediateCallback] (timers.js:729:5)' }


      My Botpress framework is running in 10.51.1 and node is > 8 and < 11.
      This is my channel-messenger config file



      "applicationID": "App ID from facebook",
      "accessToken": "Access Token from Facebook",
      "appSecret": "1234567",

      "verifyToken": "What this verify Token is for?",
      "hostname": "http://ab97a8db.ngrok.io/",


      Botpress Website url: https://botpress.io/



      I used the last version, this verifies token option was not there then. I never coded in Javascript, I am just upgrading someone else codebase. TIA










      share|improve this question
















      I have connected my bot to my Facebook page using ngrok. And I filled up the access token, application ID and app secret accordingly. Access Token is the token generated by Facebook, Application ID is my app id and app secret is what I have given (1234567 right now). I don’t know whats Verify Token is! So, I have put the access token on verify token as well. Every time I start the Botpress app, it shows the following message.



      { message: 'An error has been returned by Facebook API.nStatus: 400 (Bad Request)nError validating client secret.',

      stack: 'Error: An error has been returned by Facebook API.nStatus: 400 (Bad Request)nError validating client secret.n at /home/a_o/projects/truck-kothay-bot/node_modules/@botpress/channel-messenger/bin/webpack:/src/messenger.js:594:15n at PassThroughHandlerContext.finallyHandler (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/finally.js:56:23)n at PassThroughHandlerContext.tryCatcher (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/util.js:16:23)n at Promise._settlePromiseFromHandler (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/promise.js:512:31)n at Promise._settlePromise (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/promise.js:569:18)n at Promise._settlePromise0 (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/promise.js:614:10)n at Promise._settlePromises (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/promise.js:694:18)n at _drainQueueStep (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/async.js:138:12)n at _drainQueue (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/async.js:131:9)n at Async._drainQueues (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/async.js:147:5)n at Immediate.Async.drainQueues (/home/a_o/projects/truck-kothay-bot/node_modules/bluebird/js/release/async.js:17:14)n at runCallback (timers.js:794:20)n at tryOnImmediate (timers.js:752:5)n at processImmediate [as _immediateCallback] (timers.js:729:5)' }


      My Botpress framework is running in 10.51.1 and node is > 8 and < 11.
      This is my channel-messenger config file



      "applicationID": "App ID from facebook",
      "accessToken": "Access Token from Facebook",
      "appSecret": "1234567",

      "verifyToken": "What this verify Token is for?",
      "hostname": "http://ab97a8db.ngrok.io/",


      Botpress Website url: https://botpress.io/



      I used the last version, this verifies token option was not there then. I never coded in Javascript, I am just upgrading someone else codebase. TIA







      javascript node.js messenger






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 19 '18 at 7:59









      Sayed Mohd Ali

      1,0932419




      1,0932419










      asked Nov 19 '18 at 6:30









      O_oO_o

      821720




      821720
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53369387%2fwhat-is-secret-key-in-botpress-framework-v10-51-1-for-messenger-bot%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53369387%2fwhat-is-secret-key-in-botpress-framework-v10-51-1-for-messenger-bot%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Tangent Lines Diagram Along Smooth Curve

          Yusuf al-Mu'taman ibn Hud

          Zucchini