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

Add hubot-fb to list of adapters #1168

Closed
chen-ye opened this issue Apr 13, 2016 · 8 comments
Closed

Add hubot-fb to list of adapters #1168

chen-ye opened this issue Apr 13, 2016 · 8 comments

Comments

@chen-ye
Copy link

chen-ye commented Apr 13, 2016

Hey! I created a FB Messaging Platform adapter with support for:

  • botside autoverification
  • send/receive
  • truncating messages which are too long
  • image attachments
  • templates and hookbacks
  • delivery events
  • user -> profile resolution
  • responding to rich messages (images, location, etc)

Setup is very straightforward and only requires configuration facebook side, and setting a few env variables.

https://github.com/chen-ye/hubot-fb

@chen-ye
Copy link
Author

chen-ye commented Apr 13, 2016

Now supports user (name, profile picture) resolution!

@kengz
Copy link

kengz commented Apr 13, 2016

That's fast! link to your github repo/npm here? Btw is adding the template capability coming soon too?

@chen-ye
Copy link
Author

chen-ye commented Apr 13, 2016

whoops, forgot the url! https://github.com/chen-ye/hubot-fb

thinking about how to implement templates. does hubot just send raw strings, and it's up to the adapter to interpret them?

@chen-ye
Copy link
Author

chen-ye commented Apr 13, 2016

aha, i see you can add custom objects to the envelope. I'll work on an implementation later today!

@kengz
Copy link

kengz commented Apr 13, 2016

Not sure, I should let the hubot team member reply to that. What I know is you can implement a customMessage method in your adapter for sending rich format replies.

For example the Slack adapter has it for sending attachments, by calling robot.adapter.customMessage(<attachment>), where <attachment> conforms to their format. An example here.

@chen-ye
Copy link
Author

chen-ye commented Apr 13, 2016

templates

template support! i'll look at adapting to the custommessage syntax

will work on hookbacks next

@chen-ye
Copy link
Author

chen-ye commented Apr 13, 2016

hookbacks
hookbacks (and delivery events) have been implemented (see readmefor details)

@bkeepers
Copy link
Contributor

The list of hubot adapters in the hubot documentation is being replaced with a link to a GitHub topic search. Add the hubot-adapter topic to your repository on GitHub to include it in this list.

/cc #1320

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

No branches or pull requests

3 participants