Getting psid for the user in fb messenger - Getting Started with Rasa / Tutorials, Resources & Videos - Rasa Community Forum
👋 Introducing the Rasa Playground
Getting psid for the user in fb messenger
post by jehanzaib12 on May 5, 2020
class Actiongreet(Action):
def name(self):
return 'action_greet'
def run(self, dispatcher, tracker, domain):
print("getting receipent id")
#print(recipient_id)
userid = requests.get(
"https://graph.facebook.com/receipient_id?fields=first_name,last_name,profile_pic&access_token=page_access_token").json()
print(userid)
— here i want to get the receipeint id or psid of the user, i dont know how to get it from the action class.
I would be very thankful if you help me @smn-snkl
post by jehanzaib12 on May 6, 2020
tracker.sender_id solved my problem !!