-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Facebook POST message using JSON and newer endpoint to support Emojis. #317
Conversation
So, now you can specify the |
I think the problem was more in the Form be JSON way of posting to Facebook, and potentially with the endpoint version itself. The access token can be in the URL or body. Doesn't matter. Sent from my iPhone
|
hey, even with the old version (current botkit) how are you sending emoji to facebook? |
Using the new update you can send them with plaintext. No pseudo code required. Sent from my iPhone
|
right, but waiting for that to get merged... meantime wanted to know what
pseudo code methods there are.
|
Not sure I understand the question Sent from my iPhone
|
until your PR is merged - how do you send emoji to FBM? |
you can't. Sent from my iPhone
|
This reverts commit f448e9a.
…times process messages out of order when using images due to the file size processing time. 1500 seconds seems to fix it.
@@ -823,7 +823,7 @@ function Botkit(configuration) { | |||
// set up a once a second tick to process messages | |||
botkit.tickInterval = setInterval(function() { | |||
botkit.tick(); | |||
}, 1000); | |||
}, 1500); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a particular reason to change the interval to 1500 ms?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out you can revert this as I don’t think it makes a difference. Basically the issue with the framework with Facebook is that if you send 2 or 3 messages, and one of them is an image for some reason it will come out of order. It’s something with facebooks queue on the backend. So i think what needs to happen is to wait in between messages before sending
Tom Kornblit
On Jul 17, 2016, at 8:44 PM, Yagiz Nizipli notifications@github.com wrote:
In lib/CoreBot.js #317 (comment):
@@ -823,7 +823,7 @@ function Botkit(configuration) {
// set up a once a second tick to process messages
botkit.tickInterval = setInterval(function() {
botkit.tick();
}, 1000);
Is there a particular reason to change the setInterval method to 1500 ms?}, 1500);
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/howdyai/botkit/pull/317/files/809cf5d21ca7ca7ba5f4168cda8fb58ec0eb723c#r71093302, or mute the thread https://github.com/notifications/unsubscribe-auth/AB7b-SlWA9071Oinid5i1DBWlSJPN4ZDks5qWsxvgaJpZM4JI56v.
this is a month old, would be nice to get merged in, a lot of chatter in #fb-messenger about emoji. |
What do you need from me to get this merged? Sent from my iPhone
|
So sorry for the delay! Merging. Thank you for this fix. |
Awesome. This actually comes at an interesting time. I wanted to run something by you and see what you thought. The past 4 months I’ve been working on building my own framework that wraps botkit. It essentially exposes a Data Description JSON Language that enables you to write bots using just data. I think this will be really helpful for other developers, so I’m open-sourcing it, in hopes that it helps developers build more rapidly and cross platform. I call the project Mermaid https://github.com/sage-bots/mermaid, and would love to hear your thoughts. -TomTom Kornblit
|
The older Facebook endpoint doesn't support (All) Emojis. Using JSON and the new endpoint theres now support :).