Driftglass
← All integrations

Facebook Pages

Social media

Let agents manage the Facebook Pages you run: publish and schedule posts with links, photos and videos, reply to and moderate comments, answer Messenger conversations and read Page insights.

Actions

17 actions. Call one with POST /v1/tools/{name}/execute or through /mcp.

List Pages

readfacebook_pages.list_pagesmcp: facebook_pages_list_pages

List the Facebook Pages this connection can manage, with their ids.

No arguments.

curl -X POST https://driftglass.io/v1/tools/facebook_pages.list_pages/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{}}'

Get Page

readfacebook_pages.get_pagemcp: facebook_pages_get_page

Get a Page's details: name, about, followers, link and contact info.

ArgumentTypeDescription
page_idrequiredstringPage id (from list_pages).
curl -X POST https://driftglass.io/v1/tools/facebook_pages.get_page/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"page_id":"<page_id>"}}'

List posts

readfacebook_pages.list_postsmcp: facebook_pages_list_posts

List a Page's posts, newest first, with reaction, comment and share counts.

ArgumentTypeDescription
page_idrequiredstringPage id (from list_pages).
limitintegerResults per page (1-100). Default: 25
afterstring`next_cursor` from the previous page.
include_scheduledbooleanList scheduled (unpublished) posts instead. Default: false
curl -X POST https://driftglass.io/v1/tools/facebook_pages.list_posts/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"page_id":"<page_id>"}}'

Get post

readfacebook_pages.get_postmcp: facebook_pages_get_post

Get one Page post with its counts.

ArgumentTypeDescription
page_idrequiredstringPage id (from list_pages).
post_idrequiredstringPost id.
curl -X POST https://driftglass.io/v1/tools/facebook_pages.get_post/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"page_id":"<page_id>","post_id":"<post_id>"}}'

List comments

readfacebook_pages.list_commentsmcp: facebook_pages_list_comments

List comments on a Page post (or replies to a comment).

ArgumentTypeDescription
page_idrequiredstringPage id (from list_pages).
object_idrequiredstringPost id, or a comment id for its replies.
limitintegerResults per page (1-100). Default: 50
afterstring`next_cursor` from the previous page.
curl -X POST https://driftglass.io/v1/tools/facebook_pages.list_comments/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"page_id":"<page_id>","object_id":"<object_id>"}}'

Get Page insights

readfacebook_pages.get_page_insightsmcp: facebook_pages_get_page_insights

Get Page insights metrics for a period (metric names: developers.facebook.com/docs/graph-api/reference/insights).

ArgumentTypeDescription
page_idrequiredstringPage id (from list_pages).
metricsstringComma-separated metrics. Default: page_post_engagements,page_daily_follows_unique,page_views_total
periodstring
day | week | days_28 | total_over_range
Period. Default: day
sincestringStart date, YYYY-MM-DD.
untilstringEnd date, YYYY-MM-DD.
curl -X POST https://driftglass.io/v1/tools/facebook_pages.get_page_insights/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"page_id":"<page_id>"}}'

Get post insights

readfacebook_pages.get_post_insightsmcp: facebook_pages_get_post_insights

Get insights for one Page post.

ArgumentTypeDescription
page_idrequiredstringPage id (from list_pages).
post_idrequiredstringPost id.
metricsstringComma-separated metrics. Default: post_reactions_by_type_total,post_clicks,post_impressions_unique
curl -X POST https://driftglass.io/v1/tools/facebook_pages.get_post_insights/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"page_id":"<page_id>","post_id":"<post_id>"}}'

List Messenger conversations

readfacebook_pages.list_conversationsmcp: facebook_pages_list_conversations

List a Page's Messenger conversations, most recent first.

ArgumentTypeDescription
page_idrequiredstringPage id (from list_pages).
limitintegerResults per page (1-100). Default: 20
afterstring`next_cursor` from the previous page.
curl -X POST https://driftglass.io/v1/tools/facebook_pages.list_conversations/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"page_id":"<page_id>"}}'

Read Messenger conversation

readfacebook_pages.list_messagesmcp: facebook_pages_list_messages

Read the latest messages in a Page conversation.

ArgumentTypeDescription
page_idrequiredstringPage id (from list_pages).
conversation_idrequiredstringConversation id.
limitintegerResults per page (1-100). Default: 25
curl -X POST https://driftglass.io/v1/tools/facebook_pages.list_messages/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"page_id":"<page_id>","conversation_id":"<conversation_id>"}}'

Publish post

writefacebook_pages.create_postmcp: facebook_pages_create_post

Publish a post on a Page: text, a link, a photo (by URL) or a video (by URL). Set `scheduled_time` to schedule it (10 minutes to 30 days ahead).

ArgumentTypeDescription
page_idrequiredstringPage id (from list_pages).
messagestringPost text.
linkstringURL to share.
photo_urlstringPublic image URL to post as a photo.
video_urlstringPublic video URL to post as a video.
titlestringVideo title.
scheduled_timestringRFC 3339 time to publish at.
curl -X POST https://driftglass.io/v1/tools/facebook_pages.create_post/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"page_id":"<page_id>"}}'

Schedule post

writefacebook_pages.schedule_postmcp: facebook_pages_schedule_post

Schedule a text or link post on a Page for a time 10 minutes to 30 days ahead.

ArgumentTypeDescription
page_idrequiredstringPage id (from list_pages).
messagestringPost text.
linkstringURL to share.
scheduled_timerequiredstringRFC 3339 time to publish at.
curl -X POST https://driftglass.io/v1/tools/facebook_pages.schedule_post/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"page_id":"<page_id>","scheduled_time":"<scheduled_time>"}}'

Edit post

writefacebook_pages.update_postmcp: facebook_pages_update_post

Change the text of a Page post.

ArgumentTypeDescription
page_idrequiredstringPage id (from list_pages).
post_idrequiredstringPost id.
messagerequiredstringNew text.
curl -X POST https://driftglass.io/v1/tools/facebook_pages.update_post/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"page_id":"<page_id>","post_id":"<post_id>","message":"<message>"}}'

Delete post

writefacebook_pages.delete_postmcp: facebook_pages_delete_post

Delete a Page post.

ArgumentTypeDescription
page_idrequiredstringPage id (from list_pages).
post_idrequiredstringPost id.
curl -X POST https://driftglass.io/v1/tools/facebook_pages.delete_post/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"page_id":"<page_id>","post_id":"<post_id>"}}'

Reply to comment

writefacebook_pages.reply_to_commentmcp: facebook_pages_reply_to_comment

Reply to a comment (or comment on a post) as the Page.

ArgumentTypeDescription
page_idrequiredstringPage id (from list_pages).
object_idrequiredstringComment id to reply to, or a post id to comment on.
messagerequiredstringText.
curl -X POST https://driftglass.io/v1/tools/facebook_pages.reply_to_comment/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"page_id":"<page_id>","object_id":"<object_id>","message":"<message>"}}'

Hide comment

writefacebook_pages.hide_commentmcp: facebook_pages_hide_comment

Hide or unhide a comment on a Page post.

ArgumentTypeDescription
page_idrequiredstringPage id (from list_pages).
comment_idrequiredstringComment id.
hidebooleantrue hides, false shows it again. Default: true
curl -X POST https://driftglass.io/v1/tools/facebook_pages.hide_comment/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"page_id":"<page_id>","comment_id":"<comment_id>"}}'

Delete comment

writefacebook_pages.delete_commentmcp: facebook_pages_delete_comment

Delete a comment on a Page post.

ArgumentTypeDescription
page_idrequiredstringPage id (from list_pages).
comment_idrequiredstringComment id.
curl -X POST https://driftglass.io/v1/tools/facebook_pages.delete_comment/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"page_id":"<page_id>","comment_id":"<comment_id>"}}'

Send Messenger message

writefacebook_pages.send_messagemcp: facebook_pages_send_message

Reply to a person in Messenger as the Page (within Messenger's 24-hour window after their last message).

ArgumentTypeDescription
page_idrequiredstringPage id (from list_pages).
recipient_idrequiredstringPage-scoped id of the person (from list_conversations).
textrequiredstringMessage text.
curl -X POST https://driftglass.io/v1/tools/facebook_pages.send_message/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"page_id":"<page_id>","recipient_id":"<recipient_id>","text":"<text>"}}'