Sample app for demonstrating the integration between Salesforce Live Agent and Facebook Messenger using the Live Agent REST API that runs on Heroku and uses the nForce file to get data from Salesforce. Check out a demo:
This app is built with Node.js so you can easily run it locally and on Heroku.
If you haven't already done so, follow the steps below to create a Salesforce connected app:
In Salesforce Setup, type Apps in the quick find box, and click the Apps link
In the Connected Apps section, click New, and define the Connected App as follows:
Make sure you are logged in to the Heroku Dashboard
Fill in the config variables as described.
Follow these instructions to create a Facebook app. You'll have to create a Facebook page, a Facebook application, and configure Messenger for your application.
Visit the Facebook page you created in the previous step, and click the Message button. Type help in the chat bot. You can continue the conversation with the bot in the Messenger app on your phone or in the browser (http://messenger.com).