I have a Facebook app that users log in to with a mobile app, using a Facebook login button. That user ID, which is app-specific, is how we identify that user.
Is there a way to determine that app-specific user ID from messenger through a Facebook bot? I don't think there is, but if someone can think of a workaround, please let me know.
I found a workaround and wrote about it some time ago. (Its very hacky 😉)
FB Messenger Bot 🤖 — How to identify a user via page- & app-scoped user-id’s https://chatbotsmagazine.com/fb-messenger-bot-how-to-identify-a-user-via-page-app-scoped-user-ids-f95b807b7e46#.5ak8mikm4
Let me know if you need more help!