Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Messenger Platform: how to get user specific information?

I'm trying the recent released Facebook Messenger Platform and so far so good. Everything worked well and I was able to create a echo bot.

But I'm wondering how I could identify this user that started chatting in my page. For example, when a user started chatting I get a PID user (page specific user id).

Making the follow request to Facebook Graph API:

GET https://graph.facebook.com/v2.6/{PAGE_SPECIFIC_USER_ID}

I discovered that I can just ask for the following fields: first_name,last_name and profile_pic.

So my question is, how could I discover if this user is a current customer of my business page? Is there another way of querying more information (like e-mail and real facebook user id)?

like image 621
Tulio Faria Avatar asked Apr 25 '16 04:04

Tulio Faria


People also ask

Can you be traced on Facebook Messenger?

It is possible to find an IP Address using the Facebook messenger/chat application. Using the command prompt tool (for Windows users) or the utility tool (for Mac users) and the netstat function, you can easily trace someone's IP address on this social media platform.

How do I find the scoped user ID on Facebook?

(To get a scoped User ID for a Page, your app must query the endpoint using that Page's access token.) Your appsecret_proof hash. Refer to our Facebook Login Security guide for more information.


1 Answers

Facebook has updated the messenger platform API (2016-07-01) and introduced a new feature called Account Linking. This can be used to identify a user who has created an account on your website via Facebook Login and you can link the two accounts. Facebook login has its own set of permissions which can be used to get a lot more information via Facebook graph API. You can find the complete list here.

like image 57
Mukarram Khalid Avatar answered Sep 27 '22 20:09

Mukarram Khalid