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 actionclass.
I would be very thankful if you help me @smn-snkl