Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What user profile info is available on the Facebook Messenger Platform?

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 !

like image 571
Shaish Avatar asked May 05 '16 12:05

Shaish


People also ask

What is the Facebook Messenger platform?

The Messenger Platform allows your app to send and receive messages between your Instagram Professional account and your customers, potential customers, and followers.

What is a Messenger profile?

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.

What does a user profile consist of?

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.


2 Answers

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.

like image 120
Mukarram Khalid Avatar answered Nov 05 '22 00:11

Mukarram Khalid


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

like image 44
younglion Avatar answered Nov 05 '22 00:11

younglion