Facebook icon

Facebook

Facebook Page & Messenger toolkit: Real-time event triggers, AI-ready moderation, interactive messaging, and high-scale media distribution. Made With 💖 By Imran Hossain

User Profile → Get User Profile Details

AI-generated

Summary

Retrieve specific profile details of a Facebook user by their user ID (PSID).

Inputs

  • User's ID (required) — The recipient ID (PSID) of the Facebook user whose profile details are being retrieved.
  • Fields — An array of profile fields to fetch. Supported fields include first_name, last_name, profile_pic, locale, timezone, and gender. Defaults to first_name, last_name, and profile_pic.

Output shape

A single JSON object containing the requested user profile fields.

The output JSON structure depends on the fields requested. If an error occurs, it will throw with a descriptive message unless 'continueOnFail' is enabled, in which case error details are returned in JSON.

Examples

Example 1: Get user profile's first name, last name, and profile picture by PSID.

Set 'User's ID' to the PSID string and select the default 'Fields' or specify desired ones.

Links

Discussion