botbuilder

How to get the Facebook email of a user for a bot using bot framework?

风流意气都作罢 提交于 2019-11-28 10:21:27
问题 I have a bot that I am building with the help of the Microsoft Bot Framework. I can see that session.message.user.id gives us the user id and session.message.user.name gives us the user name but if I am to connect it with Facebook, how do I get the user's email? Thanks for your help in advance 回答1: The only way is to specifically ask the user for their email and then for example save it in user data in the bot. Facebook (luckily) doesn't give out users' emails to bots. A normal Facebook app,