claudia-bot-builder icon indicating copy to clipboard operation
claudia-bot-builder copied to clipboard

Setup Facebook Messenger API ver 4.0

Open shnjtk opened this issue 6 years ago • 5 comments

Fixed to be able to setup Facebook Messenger with API v4.0.

It shows following prompt at claudia create --configure-fb-bot command. We need two additional parameters, page ID and subscribed fields.

Facebook page access token: <YOUR_FB_PAGE_ACCESS_TOKEN>
Facebook App Secret: <YOUR_FB_APP_SECRET>
Facebook page ID: <YOUR_FB_PAGE_ID>
Subscribed fields (comma separated): messages, messaging_postbacks

shnjtk avatar Oct 23 '19 08:10 shnjtk

PR#133 was very helpful, thanks @prathmj

shnjtk avatar Oct 23 '19 08:10 shnjtk

@shnjtk Thank you for your contribution! Much appreciated May I ask you to add / modify the corresponding test? If needed I can help out with some insight

simalexan avatar Oct 23 '19 10:10 simalexan

@simalexan Sure, will do. I'll ask you if I need some help, thanks.

shnjtk avatar Oct 23 '19 13:10 shnjtk

@simalexan I've added the test. Would you check?

I used process.stdin.emit and setTimeout for emulating user input. Please let me know If you know a better way.

Here is a test coverage by nyc.

Screenshot 2019-10-25 0 52 16

shnjtk avatar Oct 24 '19 16:10 shnjtk

Isn't merged to master?

cstpalash avatar Apr 02 '20 13:04 cstpalash