1
0
mirror of synced 2024-11-25 14:26:09 +03:00
Package messenger is used for making bots for use with Facebook messenger
Go to file
Michele Gargiulo 66c2f90a07 Adds missing properties for web_url button in StructuredMessageButton. (#29)
* Adds the Referral webhook and PostBacks's referral structure

* Adds missing properties for web_url button in StructuredMessageButton.
See https://developers.facebook.com/docs/messenger-platform/send-api-reference/url-button

* Fixes the type of StructuredMessageButton.MessengerExtensions
2017-04-09 09:56:54 -07:00
cmd/bot Fix wrong function handle read (#8) 2016-08-19 19:47:04 +10:00
.gitignore Add handling receiving messages 2016-04-13 16:14:23 +10:00
actions.go Adds the Referral webhook and PostBacks's referral structure (#26) 2017-02-16 18:29:12 -08:00
LICENSE Initial commit 2016-04-13 10:35:25 +10:00
message.go Adds the Referral webhook and PostBacks's referral structure (#26) 2017-02-16 18:29:12 -08:00
messenger.go Add AttachmentWithReplies method for sending attachment together with replies. (#27) 2017-03-15 10:29:26 -07:00
profile.go Update timezone to be of float type (#24) 2017-01-23 09:23:21 -08:00
README.md Update timezone to be of float type (#24) 2017-01-23 09:23:21 -08:00
receiving.go Adds the Referral webhook and PostBacks's referral structure (#26) 2017-02-16 18:29:12 -08:00
response.go Adds missing properties for web_url button in StructuredMessageButton. (#29) 2017-04-09 09:56:54 -07:00
settings.go Add missing fields of CallToActionItem (#22) 2016-12-09 21:04:14 +11:00

Messenger GoDoc

This is a Go library for making bots to be used on Facebook messenger. It is built on the Messenger Platform. One of the main goals of the project is to implement it in an idiomatic and easy to use fashion.

You can find an example of how to use it here

Tips

  • Follow the quickstart guide for getting everything set up!
  • You need a Facebook development app, and a Facebook page in order to build things.
  • Use ngrok to tunnel your locally running bot so that Facebook can reach the webhook.

Breaking Changes

paked/messenger is a pretty stable library however, changes will be made which might break backwards compatibility. For the convenience of its users, these are documented here.

  • 23/1/17: Updating timezone type to float64 in profile struct
  • 12/9/16: Removing unused parameter text string from function (r *Response) GenericTemplate.
  • 20/5/16: Leaving the WebhookURL field blank in Options will yield a URL of "/" instead of a panic.
  • 4/5/16: The URL to use for the webhook is changable in the Options struct.

Inspiration

Messenger takes design cues from:

Projects

This is a list of projects use messenger. If you would like to add your own, submit a Pull Request adding it below.

  • meme-maker by @paked: A bot which, given a photo and a caption, will create a macro meme.
  • drone-facebook by @appleboy: Drone.io plugin which sends Facebook notifications