Register Facebook Bot In DecAds System
1.Running “project” and login to DecAds Dashboard.
2.Get your account from DecAds Member and log in then start preparing create your bot in DecAds System.
Then click bot service
There are three steps that you need to do:
a) Create “Logic”
Click the blue button
Insert name and description for your logic.
Then you will be able to redirect to this page.
-Create first entity.
Then click save.
Always have phase 0, so you need to create phase 0 first.
-Create second entity.
And add response
Then click save.
Finish create Logic.
*Remember your logic name.
b) Create “Profile”
The next step you will need a profile for your Bot service.
Click the blue button to create a new profile.
Insert name and another information.
Finish create profile.
*Remember your profile name.
c) Create “Bot”
Click the blue button to start create Bot Service.
About Profile ID - You need to choose the Profile name that you create before.
About Logic ID - You need to choose the Logic name that you create before.
Then click save.
Finish create a profile.
*Remember your Bot service name.
3. Create Your Facebook Channel info.
-Start gathering all information.
a) Core bot ID(Core bot name): Facebook Bot Service.
b) Facebook App Serect & Facebook Page token:
To get App Serect in facebook you need to create an application on facebook developer.
Go to : https://developers.facebook.com/?locale=en_US
Add new application
Then click “Create App ID”.
Submit the captcha
You will be able to redirect to this page.
Then click “Set Up” Button.
Scroll your mouse until you see two red squares.
Before you do next step make sure that you have App ID.
-For Facebook App Serect Click Dashboard on left panel menu
There are two things need to write down.
-App ID And Facebook App Serect
About Facebook App Serect.
Click button “Show”
Enter your Facebook password to get the App Serect.
After that you will see the App Serect which mean you just get the Facebook App Serect
b.1) Token Generation (Facebook Page token).
Choose your page that you create before(you will create this in document “1.RegisterBotchatOnFacebook”).
Click the blue button to continue.
After that you will see the page access token.
Now you have Facebook Page token.
b.2) Webhooks.
Click Setup Webhooks
The syntax of CallBack URL: https://facebook-api-demo.azurewebsites.net/api/FacebookMessage/219782061892618
Which “219782061892618” is an App ID You get before.
Stick “messages” and “messaging_postbacks”.
Remember the Verify Token.
Then click Verify and Save.
Choose page you have created before to subscribe webhook.
Now you completely finish create bot in facebook developer website.
Now you have these information
+Facebook App ID.
+Facebook Bot Name.
+Core bot ID(Core bot name).
+Facebook App Serect.
+Facebook Page Token.
+Facebook Verify Token.
Make sure that you have all of these information then you start Create Facebook Channel.
-Start Create facebook channel.
Click the blue button to start create Facebook channel info.
Insert all six information that you have create before then click the button “save” at the bottom.
After you save it ,you will be back to main page (facebook channel info).
Finish Create facebook channel info.
4.Add user to test and Chat with the Bot.
Click “Roles” To Add tester for your bot.
Click “Add tester”.
Make sure that you have the id of you second facebook.
Enter that ID and click “Submit”
Finish Adding tester.
Now use your second facebook to chat with the bot.
Now use your second facebook to chat with the bot.