Skip to content

Setup Facebook Messenger API ver 4.0 - #134

Open
shnjtk wants to merge 6 commits into
claudiajs:masterfrom
shnjtk:facebook_graph_api_v4_compatible
Open

Setup Facebook Messenger API ver 4.0#134
shnjtk wants to merge 6 commits into
claudiajs:masterfrom
shnjtk:facebook_graph_api_v4_compatible

Conversation

@shnjtk

@shnjtk shnjtk commented Oct 23, 2019

Copy link
Copy Markdown

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

shnjtk commented Oct 23, 2019

Copy link
Copy Markdown
Author

PR#133 was very helpful, thanks @prathmj

@simalexan

Copy link
Copy Markdown
Member

@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

@shnjtk

shnjtk commented Oct 23, 2019

Copy link
Copy Markdown
Author

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

@shnjtk

shnjtk commented Oct 24, 2019

Copy link
Copy Markdown
Author

@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

@cstpalash

Copy link
Copy Markdown

Isn't merged to master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants