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

Get users email #102

Closed
jaksz opened this issue Jan 6, 2018 · 4 comments
Closed

Get users email #102

jaksz opened this issue Jan 6, 2018 · 4 comments

Comments

@jaksz
Copy link

jaksz commented Jan 6, 2018

We can get the users profile with chat.getUserProfile(), but how can we get the email?

@mraaroncruz
Copy link
Collaborator

Here's an article about it. It looks like a real pain. Look in the comments, there's some good stuff.
http://espeo.eu/blog/user-permissions-messenger-bots/

Also look here https://developers.facebook.com/docs/messenger-platform/webview/permissions
I can't see anything about email here: https://developers.facebook.com/docs/messenger-platform/identity/user-profile

It looks like it's a bit of a black art.

@mraaroncruz
Copy link
Collaborator

Also check out this https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow
linked to in this related thread in the botkit repo
howdyai/botkit#544

@FnTm
Copy link

FnTm commented Mar 10, 2018

@jaksz I'm quite certain that e-mail is not something you can get directly from the userProfile, and that is by design. Your best option is to ask the user to enter their e-mail directly in some way, though most users will most likely not do that.

@Charca
Copy link
Owner

Charca commented May 25, 2018

Yeah, I don't think it's possible to get the user's email address from Facebook. This might change in the future, but right now your best option is to ask the user directly.

@Charca Charca closed this as completed May 25, 2018
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

4 participants