2

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
    Duplicate of https://stackoverflow.com/q/49035696/1427878 with different account, or copy&paste …? – CBroe Mar 01 '18 at 11:34

1 Answers1

1

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.

amuramoto
  • 2,838
  • 1
  • 11
  • 15