The messenger platform docs shows an example of how to get the user profile info via their API (see this). I could quite understand if the example shown actually contains all the info possible to retrieve (meaning: first_name, last_name, profile_pic, locale, timezone, gender) or it is just an example and I could find more user data via the API (again, referring to doing this just via the messenger platform, aka via bots). Thanks !
The Messenger Platform allows your app to send and receive messages between your Instagram Professional account and your customers, potential customers, and followers.
The Messenger Profile for your Page is where you set properties that define various aspects of the following Messenger Platform features. For more information, see the Messenger Profile Properties table below.
A user profile is a collection of settings and information associated with a user. It contains critical information that is used to identify an individual, such as their name, age, portrait photograph and individual characteristics such as knowledge or expertise.
This is the only user information available at the moment via chat bot API and you cannot use any other API to query user information because the User Id (Sender Id) we get on our webhook is just for the scope of the App-Page and is completely different than the actual Facebook UserId and currently there's no way to link these two Ids.
You can ask a user to login using FB Login API and link the two Ids at your end but that won't be the ideal way to do it.
Edit: 2016-07-26
Facebook has introduced a new feature for the messenger platform called Account Linking. This can be used to identify a user who has created an account on your website via Facebook Login
. 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.
You can retrieve - first_name, last_name, profile_pic, locale, timezone, gender
This information can be retrieved with a quick call to the FB graph:
https://graph.facebook.com/v2.6/<USER_ID>?fields=first_name,last_name,profile_pic,locale,timezone,gender&access_token=<PAGE_ACCESS_TOKEN>
see Complete Guide - Messenger Platform
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With