I tried the recently released Facebook Messenger platform, and so far so good. Everything worked well, and I was able to create an echo bot.
But I wonder how I can identify this user who started chatting on my page. For example, when a user started chatting, I get a PID user (user ID on the page).
Making the following request to the Facebook Graph API:
GET https://graph.facebook.com/v2.6/{PAGE_SPECIFIC_USER_ID}
I found that I can simply request the following fields: first_name, last_name and profile_pic.
So my question is: how can I find out if this user is the current client of my business page? Is there any other way to request additional information (e.g. email and real facebook user id)?
facebook facebook-graph-api facebook-messenger
Tulio faria
source share