Can't get user profile for user who write in Messenger

34 Views Asked by At

I implemented integration with Facebook Messenger according to the documentation. User login via Login via Facebook for companies. I get the user token and then I get page access token. I register subscriptions via "https://graph.facebook.com/v17.0/{appId}/subscriptions" for the application and "https://graph.facebook.com/v17.0/{pageId}/subscribed_apps" for pages. All calls return success. The webhook is registered correctly. When a user writes to a Messenger page, I receive a webhook call, but when I make a request to get the profile of the user who wrote the message, I do not receive any data. I make a request with the fields “id, first_name, last_name, picture”, and I only get a picture. How to get the profile data of the user who wrote the message? If I register the page manually through the developer console and use the access token from the console, then I receive the user profile data correctly.

0

There are 0 best solutions below