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

后端 未结 1 758
感动是毒
感动是毒 2020-12-21 12:26

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 give

相关标签:
1条回答
  • 2020-12-21 13:12

    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, on the other hand, might get it.

    List of available fields: https://developers.facebook.com/docs/messenger-platform/identity/user-profile#fields

    0 讨论(0)
提交回复
热议问题