Is it possible to get a Facebook Page user's name (first name and last name) through an HTTP request when they send a message to my Page?

Describe the problem/error/question

Hi everyone,Is it possible to get a Facebook Page user’s name (first name and last name) through an HTTP request when they send a message to my Page?I’ve tried multiple times using the Graph API. The issue is that I can only retrieve the first and last name when the message is sent from the Facebook account that was used to create the app. For normal users who message the Page, I cannot get their name.Instead, I receive this error:"Bad request - please check your parametersUnsupported get request. Object with ID ‘26523914647276797’ does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api"Has anyone successfully retrieved Messenger users’ names from a Facebook Page in n8n? Do I need any specific permissions, app review approval, or a different API endpoint?Thanks in advance!

Please share your workflow


Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

@Abidul_Haque_Shohel ur app is in Dev mode — Facebook restricts user profile access (pages_user_engagement / pages_messaging permissions) to the app creator + designated testers until u submit for App Review and FB approves the permissions. once approved, any user messaging ur Page returns proper first_name / last_name through the same endpoint. have u submitted for App Review on those scopes yet?

My app have just live mode..not submited for app review

Welcome @Abidul_Haque_Shohel to our community! I’m Jay and I am a n8n verified creator.

The root issue is the permission scope - even in live mode, pages_messaging (and specifically the pages_user_engagement sub-scope) requires App Review approval before Facebook allows it for users outside your test accounts. The endpoint you need is correct: GET /{sender-psid}?fields=first_name,last_name with your Page Access Token, but it only returns data once those scopes are approved.

For App Review, submit the pages_messaging permission with a screen recording showing your chatbot flow - Facebook wants to see a real use case. Once approved, the same PSID lookup will return first_name and last_name for any user who messages your Page.