1
0
mirror of synced 2024-11-22 12:56:06 +03:00
Commit Graph

92 Commits

Author SHA1 Message Date
Ayomide Onigbinde
92e06df4a9 remove default profile field 2019-01-03 17:06:29 +01:00
Ayomide Onigbinde
61add2ce3d reverted PR 51; fixed persistent menu typo 2019-01-02 20:12:05 +01:00
Ayomide Onigbinde
f1076a12b6 fix import path causing travis failed build 2018-12-31 02:16:01 +01:00
Ayomide Onigbinde
69e4942945 allow the use of a config file instead of manually pasting configs 2018-12-30 18:59:42 +01:00
Ayomide Onigbinde
8d546920cd change the default user profile fields; fix minor typo 2018-12-30 13:37:18 +01:00
Harrison Shoebridge
7fbedb40b4
Merge pull request #49 from EddyTravels/feature/profile-fields
Allow specifying which profile fields to pull
2018-12-16 11:02:23 +11:00
Harrison Shoebridge
8b09ea69e9
Update comments 2018-12-16 08:43:53 +11:00
Pranas Kiziela
47da36229c Allow specifying which profile fields to pull 2018-12-13 14:04:40 +02:00
Harrison Shoebridge
8a57afcd5c
Merge pull request #47 from albttx/enable-chat-extension
feat: EnableChatExtension
2018-11-23 13:51:17 +11:00
Albert Le Batteux
c76fd3611a
Add extension example 2018-11-22 11:43:26 +01:00
Albert Le Batteux
7dec871473
feat: EnableChatExtension 2018-11-22 11:43:25 +01:00
Harrison Shoebridge
3dda3ecdde
Merge pull request #44 from EddyTravels/feature/attachment-properties
Add ImageAspectRatio, DefaultAction and Sharable properties
2018-11-14 15:30:59 +11:00
Pranas Kiziela
a9882ddddb Add default_action property to attachments 2018-11-13 15:41:30 +02:00
Pranas Kiziela
5f41235104 Add sharable property to attachments 2018-11-13 15:05:52 +02:00
Pranas Kiziela
92cd8b953b Add image_aspect_ratio property to attachments 2018-11-13 15:01:10 +02:00
Harrison Shoebridge
73c6387c54
Merge pull request #43 from EddyTravels/feature/location-attachment
Add location attachment support
2018-11-10 15:46:12 +11:00
Pranas Kiziela
af2ee6ce0b Add location attachment support 2018-11-09 17:41:25 +02:00
Harrison Shoebridge
2cfa7543c2
Merge pull request #42 from dynbit/feature/top_element_style_prepared
Add TopElementStyle attribute to StructuredMessagePayload
2018-10-31 15:06:12 +11:00
Vytautas Galaunia
78e9ea3089 Add TopElementStyle attribute to StructuredMessagePayload 2018-10-29 13:21:04 +02:00
Harrison Shoebridge
65752d0a98
Merge pull request #39 from dgellow/add-account-linking-handler
Implement support for AccountLinking process
2018-03-26 10:41:55 +11:00
Samuel El-Borai
fee3c3f27e Try to build examples from travis job 2018-03-18 20:55:41 +01:00
Samuel El-Borai
be1779c3c5 Remove dependency on paked/configure from basic example 2018-03-18 20:54:43 +01:00
Samuel El-Borai
e011679fe8 Update link to examples in README 2018-03-18 20:42:28 +01:00
Samuel El-Borai
0e90e7a413 Add example for account linking 2018-03-18 20:42:28 +01:00
Samuel El-Borai
08f0be67a7 Move bot example to /examples/basic 2018-03-18 20:42:28 +01:00
Samuel El-Borai
0f9e821889 Add handler for AccountLinking process 2018-03-18 20:42:28 +01:00
Harrison Shoebridge
88d6aeb77e
Merge pull request #40 from dgellow/add-unit-tests
Add tests for event dispatching
2018-03-18 09:23:59 +11:00
Samuel El-Borai
37f0659bbb Add travis-ci config 2018-03-15 20:41:23 +01:00
Samuel El-Borai
46d07e4fc2 Add tests for (*Messenger).dispatch 2018-03-11 23:00:32 +01:00
Samuel El-Borai
01488228f2 Add tests for (*Messenger).classify 2018-03-11 20:48:59 +01:00
Harrison Shoebridge
d923abfc97
Merge pull request #38 from dgellow/fix-example
Fix cmd/bot example to build with latest version of the library
2018-03-10 17:46:51 +11:00
Samuel El-Borai
73b91a659d Fix example to build with latest version of the library 2018-03-10 07:02:16 +01:00
xuefeng Huang
525ba1bedc added messaging_type for FB send API request (#37)
* added messaging_type for FB send API request

* added note in readme
2018-02-06 13:15:36 +11:00
DeziderMesko
2a76034a05 Correct content-type for attachments (#33)
* fixed error return value

* content-type correctly set
2017-07-31 19:57:34 -07:00
DeziderMesko
5d938afef2 fixed error return value (#32) 2017-07-31 12:24:49 -07:00
Ramy Aboul Naga
7b303129b9 Adds integrity check (#19) (#30)
* Adds integrity check (#19)

* Replace usage of `flag' with `configure' for `port' arg.

	Usage:
		./main               # Default port 8080
		./main  --port=1234  # Custom port 1234
2017-06-27 19:10:34 -07:00
Wilson Wang
64c15a121b Reuse Post Code (#28)
* add json omitempty on button Title field

Share Button only allows the Type field to be presented in the serialized data. Otherwise, you got facebook error:

"Facebook error : (#100) Param [elements][0][buttons][0][title] must be a non-empty UTF-8 encoded string"

* add attachement to senddata

* changes after pull request reviews

* add PostToMessenger method and ensure the result check in it

* change the function name
2017-04-09 09:58:35 -07:00
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
Wilson Wang
74b5cbe4ac Add AttachmentWithReplies method for sending attachment together with replies. (#27)
* add json omitempty on button Title field

Share Button only allows the Type field to be presented in the serialized data. Otherwise, you got facebook error:

"Facebook error : (#100) Param [elements][0][buttons][0][title] must be a non-empty UTF-8 encoded string"

* add attachement to senddata

* changes after pull request reviews
2017-03-15 10:29:26 -07:00
Michele Gargiulo
bbd304b464 Adds the Referral webhook and PostBacks's referral structure (#26) 2017-02-16 18:29:12 -08:00
Wilson Wang
998c23c3e9 add json omitempty on button Title field (#25)
Share Button only allows the Type field to be presented in the serialized data. Otherwise, you got facebook error:

"Facebook error : (#100) Param [elements][0][buttons][0][title] must be a non-empty UTF-8 encoded string"
2017-02-06 08:05:01 -08:00
Aman Mangal
d8d9b9886f Update timezone to be of float type (#24)
* Update timezone to be of float type

Reference: https://developers.facebook.com/docs/graph-api/reference/user
Fixes #23

* Update README
2017-01-23 09:23:21 -08:00
Depado
87975a1970 Add missing fields of CallToActionItem (#22)
* Adding WebViewHeightRatio and MessengerExtension fields

* Adding constants and documentation
2016-12-09 21:04:14 +11:00
Machiel
a5faf5be5c Add method to handle OptIn messages (#21) 2016-12-09 07:52:21 +11:00
Bo-Yi Wu
fc8cdbb86f Fix typo (#20) 2016-11-27 20:22:11 +11:00
Trey Richards
12da86e59e Add AttachmentData method (#18) 2016-11-11 14:28:32 +11:00
Depado
40fe2bc6f0 Fix project URL (#17) 2016-11-05 11:04:39 +11:00
Bo-Yi Wu
39df036128 Add support for sending attachments by a URL (#15) 2016-10-09 14:28:21 +11:00
Depado
6970a1b09a Correctly handle Facebook errors (#14)
* Sending back the error message of Facebook as an error for some function calls

* Adding error handling for other function calls

* Private function to parse Facebook's response

* Handling errors for ProfileByID function
2016-10-08 00:28:27 +11:00
Depado
79275a89fd Fixin timestamp handling as Facebook sends back milliseconds timestamps (#12) 2016-10-04 12:44:18 +11:00