Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NEW] Facebook livechat integration #8807

Merged
merged 20 commits into from
Dec 8, 2017
Merged

Conversation

sampaiodiego
Copy link
Member

@RocketChat/core

This feature will allow livechat agents to respond inquiries from Facebook pages' messenger 🎉

Just pick the pages you want to respond:
image

And start chatting:
image

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-8807 November 7, 2017 12:35 Inactive
@rodrigok rodrigok temporarily deployed to rocket-chat-pr-8807 November 7, 2017 19:02 Inactive
@rodrigok rodrigok added this to the 0.60.0 milestone Nov 7, 2017
*/
RocketChat.API.v1.addRoute('livechat/facebook', {
post() {
if (!this.bodyParams.text && !this.bodyParams.attachments) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check if the request came from facebook via some kind of token?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes.. done

*/
RocketChat.API.v1.addRoute('livechat/facebook', {
post() {
if (!this.bodyParams.text && !this.bodyParams.attachments) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should check if facebook integration is enabled too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done as well =)

@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-8807 November 8, 2017 19:42 Inactive
@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-8807 November 8, 2017 19:44 Inactive
@rodrigok rodrigok temporarily deployed to rocket-chat-pr-8807 December 8, 2017 12:52 Inactive
@gudge25
Copy link

gudge25 commented Aug 20, 2018

attachments is not working

@gudge25
Copy link

gudge25 commented Aug 20, 2018

both directions

@geekgonecrazy
Copy link
Contributor

feel free to open an issue. This PR is already merged and has been for a while. Best chance of getting eyes on it would be a new issue

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.

6 participants