how we can get Page-scoped-id from user id in facebook send api?

1.7k Views Asked by At

Before facebook last update I was using Facebook Send message API by passing user reference parameter and getting recipient id in response.

Now the Facebook Send message API not returns recipient_id in the response when we use recipient.user_ref or recipient.phone_number to identify the message recipient.

Now they are using the Page scope id parameter like this

recipient": {
"id": "<PSID>"
},

How can I get this page scope id? So i can pass this to send api?

1

There are 1 best solutions below

0
amuramoto On

Correct, the PSID is no longer returned in the API response for user_ref and phone number sends. You will receive the PSID in the sender.id property of the webhook event when the user responds to the message.