Interrupción parcialshare-external
Why I'm getting 'Facebook user' instead real user name in messages?
5

Recently, we've found out that during conversation with user and the Facebook Page on Messenger we're getting some unexpected results regarding author of the message. It looks like for some users, instead real name, we're getting Facebook user.

"from": {
    "name": "Facebook user",
    "email": "[...]",
    "id": "{ID}"
  }

What is the reason of changing author name to Facebook user? We need to inform clients why it's happening.

Adam
Enviada hace 6 meses aproximadamente
Adam

Example request (without appsecret_proof and access_token):

curl -i -X GET \
   "https://graph.facebook.com/v16.0/m_cWFppkhui5mo41Jcw38uwVIHThmk8WFPArIvPpNACvudNP_XqI8j-qpoYkexr9POxxkatx9zRNNfWsgmpNtRMQ?fields=from%7Bname%2Cemail%2Cid%7D"

Example response:

{
  "from": {
    "name": "Użytkownik Facebooka",
    "email": "[...]",
    "id": "7087046091349580"
  },
  "id": "m_cWFppkhui5mo41Jcw38uwVIHThmk8WFPArIvPpNACvudNP_XqI8j-qpoYkexr9POxxkatx9zRNNfWsgmpNtRMQ"
}

Graph API Explorer session: https://developers.facebook.com/tools/explorer/256859710996832/?session_id=365603766504276

22 de mayo a las 3:29
Respuesta seleccionada
1

The user is likely in a jurisdiction like the EU where their explicit consent is required under the GDPR for your app to see their personally identifying information.

22 de mayo a las 5:27
Chris
Adam

Hmm, it might explain when we won't get any info for such user, but it looks like for same user we can get result with name and sometimes with Facebook user.

I'm not sure if it's somehow configurable on user side, or it depends on time, but there is no info about that in the documentation:

https://developers.facebook.com/docs/graph-api/reference/v20.0/message

24 de mayo a las 0:03