Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to have facebook messenger bot in local, staging and production

Context

I'm working on a facebook messenger bot and have a workflow issue.

To create it i used ngrok to make a facebook test application hook on my local and it worked fine.

Now the bot is in staging for test and an other application have the webhook pointing to the stage server.

For the production server i intend to do a production application that will have webhook pointing on it.

Question

But since an application has to be attached to a page to start a conversation to it, how can i test several bots ? Do i need 3 pages (local test, staging test and production) ?

Or is there a Facebook way to it ? (test version of app is not working for now on messenger bot, known bug)

Or maybe a good practice ?

like image 665
user3005099 Avatar asked Jul 21 '16 15:07

user3005099


People also ask

Does Facebook Messenger allow bots?

Facebook Messenger bots live within Facebook Messenger, and can converse with some of the 1.3 billion people who use Facebook Messenger every month. Chatbots are like virtual assistants. They can be programmed to understand questions, provide answers, and execute tasks.

How do I get Messenger bot link?

You can find your bot link in the 'Insights' tab of the 'Home' section under the Facebook Channel (it's blue).


1 Answers

You are looking for Test Apps in Facebook App Development. You can find this setting on the Developer Page on the top left where you can find a drop-down button to create a Test App.

I use to create my dev and staging environment.

like image 76
chip Avatar answered Nov 16 '22 03:11

chip