Customers can who have users that have opted in to their page or has contacted them by Facebook messenger can query the Facebook profile API for more information about the user, and personalize the experience further. This API is only available after the user initiated the conversation by sending a message or by interacting with a Web Plugin.
Request
In order to use the User Profile API, make a GET
call to https://graph.facebook.com/v2.6/<USER_ID>?access_token=PAGE_ACCESS_TOKEN
.
Fields
Field Name | Description |
---|---|
|
First name |
|
Last name |
|
Profile picture |
|
Locale of the user on Facebook |
|
Timezone, number relative to GMT |
|
Gender |
|
Is the user eligible to receive messenger platform payment messages |
Response
A successful User Profile API request returns a json string with the requested details about the user.
Example
{ "first_name": "Kola", "last_name": "Kari", "profile_pic": "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-xpf1/v/ "timezone": -7, "gender": "female" }
0 Comments