Facebook User Profile

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

First name

last_name

Last name

profile_pic

Profile picture

locale

Locale of the user on Facebook

timezone

Timezone, number relative to GMT

gender

Gender

is_payment_enabled

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"
}    
Was this article helpful?
0 out of 0 found this helpful

0 Comments

Please sign in to leave a comment.