How to link Facebook App User Id with Messenger Id for use with Facebook Messenger Bot

user2322082 picture user2322082 · Jun 28, 2016 · Viewed 9.6k times · Source

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.

Answer

phips28 picture phips28 · Jul 4, 2016

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!