How to find a Facebook Page ID, and what a PSID is
A Facebook Page ID is the numeric ID that names the Page in the Graph API. A Page manager finds it in Facebook under the Page's Transparency and privacy policy, and an app reads it from /me/accounts, beside the Page token. A PSID, or Page-scoped user ID, is different: it names a person, uniquely for each person and Page pair.
easyCoexistence lists each connected Page with its Page ID through list_social_accounts and keeps the IDs consistent between tools for Claude, ChatGPT or your own code: account_id picks the Page, a PSID addresses a reply in Messenger, and a comment ID a reply to a comment.
Where Facebook's Help Center says a Page's ID is shown, after switching into the Page and opening its profile.
Returns the Pages a person can perform tasks on, each with its name, ID, category, tasks and a Page access token.
What a Page-scoped user ID is unique to; Pages API and Messenger Platform endpoints rely on PSIDs.
User IDs from Facebook Login integrations, which Meta says will not work with the Messenger Platform.
How Meta's Page post reference writes a post's ID in its update example, with the Page's ID first.
Where is the Page ID in Facebook?
In the Page's own profile, under its transparency details. Facebook's Help Center gives these steps, starting from the account that manages the Page:
- Log into Facebook and click your profile photo in the top right.
- Click See all profiles, then select the Page you want to switch into.
- Click the Page's name in the left menu to go to it.
- Click the Page's name beneath the cover photo.
- Click Transparency and privacy policy to find the Page ID.
How does an app get a Page ID?
From /me/accounts, called with the user access token of someone who signed in with Facebook Login for Business. Meta's Pages API overview has the app capture each returned Page ID with its Page access token, and Meta's example response lists each Page's name, ID, category and the tasks the person can perform. The Graph API Explorer runs the same call for a quick look.
{
"data": [
{
"access_token": "<PAGE_ACCESS_TOKEN>",
"category": "Internet Company",
"name": "<PAGE_NAME>",
"id": "<PAGE_ID>",
"tasks": ["ANALYZE", "ADVERTISE", "MODERATE", "CREATE_CONTENT"]
}
]
}What is a PSID?
A Page-scoped user ID: the ID a Page sees for a person who interacts with it. Meta makes PSIDs unique to each person and Page pair, so the same person can carry a different ID on each Page, and Messenger assigns one the first time a person messages the Page. A Messenger reply is addressed to the PSID, and Meta's User Profile API can turn it into profile details such as name and profile picture.
Where does each ID appear?
Each ID turns up in its own places, and mixing them up is the usual reason an ID gets refused. Where Meta's documentation shows them:
- Page ID: id in /me/accounts, entry.id and recipient.id in Messenger events, and the {page-id} in Page edges such as /{page-id}/feed.
- PSID: sender.id in Messenger events, from.id on comments read through the Pages API, and the IDs /{page-id}/roles lists.
- App-scoped user ID: the id a user token's /me returns, and
user_idin the signed request of a data deletion callback. - Post ID: the id a publish call returns and
post_idin feed webhooks, written {page-id}_{post-id} in Meta's reference. - Comment ID:
comment_idin feed webhooks, and the recipient of a private reply in Messenger.
What is an app-scoped user ID?
The ID an app sees for a person who logs into it with Facebook. Meta creates it at the person's first login, it is specific to that app, and other apps cannot use it. Meta's data deletion callback names the person this way, and Meta's Send API guide warns that these IDs will not work with the Messenger Platform, which takes PSIDs.
How do you match one person across a business's apps?
Through the business that owns the apps. Once they are associated with the same business in Business Manager, the token_for_business field on the User node returns a string that stays the same for that person across those apps, and the ids_for_business edge lists their app-scoped IDs in the apps they have logged into. Meta notes the value is a token rather than an ID, and that it changes if the owning business changes.
Which IDs do easyCoexistence's tools use?
account_id, the connection's own ID, picks the Page in the publishing, comment, Messenger and insights tools, and list_social_accounts returns it beside external_id, the Page ID. get_social_credentials hands over the Page ID with the Graph API base for direct Graph calls, and forwarded events carry both. send_social_dm takes the person's PSID, the sender.id of a messages event, while reply_to_comment and hide_comment take a comment ID.
Common mistakes
- Copying the Page ID from the address bar. A Page's URL can carry its username instead, as facebook.com/platform does, so read the numeric ID from the transparency section or /me/accounts.
- Replying on Messenger with an app-scoped ID. The Send API takes the PSID from the message event; an ID from a Facebook Login sign-in does not address a conversation.
- Reusing a PSID on another Page. PSIDs are unique to each person and Page pair, so store each one with the Page ID it came from.
- Treating token_for_business as a user ID. Meta says it is a token, not an ID, and it cannot be used directly against the Graph API.
US$ 9 to US$ 0.75 per connection per month, falling as you add connections, with the first 3 days free.
easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.
Frequently asked questions
Is the Page ID the same as the Page's username?
No. The username is the Page's alias, such as platform in facebook.com/platform, while the Page ID is the numeric ID the Graph API uses for the Page.
Can I find the ID of a Page I do not manage?
Meta's Page search returns Page IDs to apps approved for the Page Public Content Access feature. /me/accounts only lists Pages the signed-in person can perform tasks on.
How do I get a person's name from a PSID?
With Meta's User Profile API: GET /{psid}?fields=first_name,last_name,profile_pic and the Page's token. It needs Advanced Access to the Business Asset User Profile Access feature, and the person has to have opted in, for example by messaging the Page.
Which ID does Meta's data deletion callback send?
The person's app-scoped user ID, as user_id inside the signed request Meta posts to the callback.
Keep reading
Connect your first channel in two minutes.
No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.
- 3 days free
- Cancel any time
- Official APIs only
- Monitored 24/7
Verified on