# Retrieve user\_id from Facebook messenger

**URL:** <https://forum.rasa.com/t/retrieve-user-id-from-facebook-messenger/24928>\
**Category:** Rasa Open Source\
**Created:** [February 18, 2020, 5:41am UTC](https://forum.rasa.com/t/retrieve-user-id-from-facebook-messenger/24928 "2020-02-18T05:41:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FabioV](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fabiov/32/4494_2.png) [@FabioV](https://forum.rasa.com/u/FabioV)\
**Post date:** [February 18, 2020, 5:41am UTC](https://forum.rasa.com/t/retrieve-user-id-from-facebook-messenger/24928/1 "2020-02-18T05:41:07Z")

</div>

Hello everybody, how to retrieve the Facebook user\_id from Messenger in Rasa Tracker, so I can retrieve the profile’s name or other informations about the contact. The tracker’s sender\_id is not the same of Facebook’s profile user\_id.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [February 24, 2020, 8:12pm UTC](https://forum.rasa.com/t/retrieve-user-id-from-facebook-messenger/24928/2 "2020-02-24T20:12:11Z")

</div>

Is it part of the request that comes in from facebook? You could print the request that comes into the webhook in the facebook input channel to see.

---

<div class="post-metadata">

**Author:** ![FabioV](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fabiov/32/4494_2.png) [@FabioV](https://forum.rasa.com/u/FabioV)\
**Post date:** [February 24, 2020, 9:40pm UTC](https://forum.rasa.com/t/retrieve-user-id-from-facebook-messenger/24928/3 "2020-02-24T21:40:46Z")

</div>

In the sqlite db, the row has the following data (sender\_id is not a Facebook user\_id): id=3837 sender\_id=2865973916787916 type\_name=user timestamp=1581615247.92075 intent\_name=info\_corsi data={“event”: “user”, “timestamp”: 1581615247.9207547, “text”: “Posso prenotare un appuntamento?”, “parse\_data”: {“intent”: {“name”: “info\_corsi”, “confidence”: 0.9984258413314819}, “entities”: [], “intent\_ranking”: [{“name”: “info\_corsi”, “confidence”: 0.9984258413314819}, {“name”: “costo\_corsi”, “confidence”: 0.0008987134206108749}, {“name”: “info\_generiche\_corsi”, “confidence”: 0.00010379301966167986}, {“name”: “email”, “confidence”: 9.740460518514737e-05}, {“name”: “info\_garanzia\_giovani”, “confidence”: 6.362960994010791e-05}, {“name”: “durata\_corsi”, “confidence”: 5.592771776719019e-05}, {“name”: “zz\_opinione\_positiva”, “confidence”: 5.114577288622968e-05}, {“name”: “zz\_arrivederci”, “confidence”: 4.176419315626845e-05}, {“name”: “info\_certificazioni”, “confidence”: 3.955802458222024e-05}, {“name”: “contatto”, “confidence”: 3.6640220059780404e-05}], “text”: “Posso prenotare un appuntamento?”}, “input\_channel”: “facebook”, “message\_id”: “6373ef49310743489b89ee3e7fbfaa26”, “metadata”: null}
