How to Retrieve a Facebook Messenger PSID in Power Virtual Agents
Question details
The user needs to obtain a Facebook Messenger page-scoped user ID (PSID) when starting a bot conversation in Power Virtual Agents.

- Product
- Power Virtual Agents
- Device & OS
- not provided
- Scenario
- Starting a bot conversation using the Get Started action to call the Facebook User Profile API and store information in bot variables.
- Observed behavior
- The PSID is required to authenticate the API request, but the user is unsure how to extract it from the Facebook Messenger channel payload within the bot.
Ensure you have administrator access to your Power Virtual Agents environment and the associated Facebook Developer account to review your webhook and API settings.
Consult the Power Virtual Agents Community for Advanced Integrations
Because retrieving the PSID involves custom webhook payloads and specific Facebook API interactions, the dedicated PVA community is the best resource for tailored solutions.
Retrieving a Page-Scoped ID (PSID) from Facebook Messenger usually requires interpreting raw webhook event payloads or setting up custom Power Automate flows. General support channels often lack the specialized expertise needed for these complex bot integrations.
Open your web browser and go to the official Power Virtual Agents Community at powerusers.microsoft.com.
Use the search bar at the top of the forum to look for terms like 'Facebook Messenger PSID' or 'channel payload' to see if other developers have already shared a working Power Automate flow.
If a solution is not readily available, click 'Start a topic' and provide details about your Get Started action, the bot variables you need to populate, and the specific Facebook User Profile API endpoint you are targeting.

Looking for a Lightweight Alternative to Microsoft Office?
While specialized automation tools like Power Virtual Agents require dedicated Microsoft platforms, WPS Office offers a completely free, lightweight, and highly compatible solution for your everyday document, spreadsheet, and presentation needs.
- 1. Visit the official website: Go to the official WPS Office website to find the free download link.
- 2. Download the installer: Click the download button for your operating system (Windows, Mac, or Linux).
- 3. Install and start working: Run the installer, follow the on-screen prompts, and immediately start creating or editing your office documents.

Frequently Asked Questions
What is a PSID in Facebook Messenger?
A Page-Scoped ID (PSID) is a unique identifier assigned by Facebook to a user when they interact with a specific Facebook Page. It allows developers to securely call the Facebook User Profile API without exposing the user's global Facebook ID.
Can I get the Facebook PSID natively in a Power Virtual Agents variable?
Power Virtual Agents does not natively map the Facebook PSID to standard bot variables by default. Capturing it usually requires passing the raw channel payload to a custom Power Automate flow to parse the incoming Facebook event.
Where can I get the best support for Power Virtual Agents webhook integrations?
The official Microsoft Power Virtual Agents Community is the recommended channel for advanced bot building, API requests, and webhook integration questions, as general Microsoft Answers forums have limited resources for these specialized scenarios.




