Why I'm getting 'Facebook user' instead real user name in messages?
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.
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
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.
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.