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

Retrieving user's input inside action. #55

Open
thibaultboursier opened this issue Mar 5, 2017 · 5 comments
Open

Retrieving user's input inside action. #55

thibaultboursier opened this issue Mar 5, 2017 · 5 comments

Comments

@thibaultboursier
Copy link

thibaultboursier commented Mar 5, 2017

Hello,

I have an action called saveAddress.
Inside it, I call an API to save an address entered by Facebook user.
My problem is that I can't get user's input inside action function.

['saveAddress'](sessionId, context, cb) {
        saveAddress(context._fbid_, 'ADRESS ENTERED BY USER')
            .then(response => {
              context.success = response.success;

              cb(context);
            });
    },

I'm sure there's a way to achieve it.
Do you have a solution ?

Thank you.

@thibaultboursier thibaultboursier changed the title Retrieving sender's ID and sender's message inside actions. Retrieving user's input inside action. Mar 5, 2017
@thekinglaolu
Copy link

Hi @thibaultboursier I really don't have an answer to this but I'm trying to implement something similar on nodejs and wondering if you've figured out yours and could help out. Thank you!!!

@thibaultboursier
Copy link
Author

Hi @thekinglaolu I didn't solve this problem, because I switched for another messenger bot implementation, but I can help you if you want.

@thekinglaolu
Copy link

Please, I do want your help. I'll be most grateful. Plus, I actually switched from using a chat text bubble style to request for inputs to a webview form that gets the inputs and submits to a database. However, I've really not completely figured out how to implement the webview without a third party solution. Could you help me out?

@thibaultboursier
Copy link
Author

Could you share your Github project with me, in order I can have a look ?

@thekinglaolu
Copy link

It's still a work in progress and it's kinda private for now(I'm just a chip off the team block) so it's not been pushed to Github yet.

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

2 participants