Starting March 12, 2018, PSIDs that meet the following criteria will no longer be valid:
To ensure that you do not lose access to these threads, we offer a Mapping API, which will allow you to exchange the invalidated PSID for the original user_ref used to open the thread. This user_ref can be used to message the user.
Please note that all PSIDs affected by this change have been invalidated, and cannot be used to access user data. For example, sending an invalid PSID to the User Profile API will return an error.
Once the user responds to a message sent with the user_ref, a new PSID will be sent to your bot in a webhook event.
To exchange an invalidated PSID for a user_ref, send a GET
request to the following:
https://graph.facebook.com/v2.8/<INVALID_PSID>?fields=user_ref&access_token=<ACCESS_TOKEN>
The user_ref
will be returned in the body of the response.
curl -X GET "https://graph.facebook.com/v2.8/1168735836588749?fields=user_ref&access_token=<ACCESS_TOKEN>"
{
"user_ref": "b5a488b0-dd64-4031-9ba2-4fd0ff617d3f",
"id": "1168735836588749"
}