Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| FACEBOOK_PAGE_ID | Yes | Your Facebook Page ID | |
| FACEBOOK_ACCESS_TOKEN | Yes | Your Facebook Page access token |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| post_to_facebook | Create a new Facebook Page post with a text message. Input: message (str) Output: dict with post ID and creation status |
| reply_to_comment | Reply to a specific comment on a Facebook post. Input: post_id (str), comment_id (str), message (str) Output: dict with reply creation status |
| get_page_posts | Fetch the most recent posts on the Page. Input: None Output: dict with list of post objects and metadata |
| get_post_comments | Retrieve all comments for a given post. Input: post_id (str) Output: dict with comment objects |
| delete_post | Delete a specific post from the Facebook Page. Input: post_id (str) Output: dict with deletion result |
| delete_comment | Delete a specific comment from the Page. Input: comment_id (str) Output: dict with deletion result |
| delete_comment_from_post | Alias to delete a comment on a post. Input: post_id (str), comment_id (str) Output: dict with deletion result |
| filter_negative_comments | Filter comments for basic negative sentiment. Input: comments (dict) Output: list of flagged negative comments |
| get_number_of_comments | Count the number of comments on a given post. Input: post_id (str) Output: integer count of comments |
| get_number_of_likes | Return the number of likes on a post. Input: post_id (str) Output: integer count of likes |
| get_post_insights | Fetch all insights metrics (impressions, reactions, clicks, etc). Input: post_id (str) Output: dict with multiple metrics and their values |
| get_post_impressions | Fetch total impressions of a post. Input: post_id (str) Output: dict with total impression count |
| get_post_impressions_unique | Fetch unique impressions of a post. Input: post_id (str) Output: dict with unique impression count |
| get_post_impressions_paid | Fetch paid impressions of a post. Input: post_id (str) Output: dict with paid impression count |
| get_post_impressions_organic | Fetch organic impressions of a post. Input: post_id (str) Output: dict with organic impression count |
| get_post_engaged_users | Fetch number of engaged users. Input: post_id (str) Output: dict with engagement count |
| get_post_clicks | Fetch number of post clicks. Input: post_id (str) Output: dict with click count |
| get_post_reactions_like_total | Fetch number of 'Like' reactions. Input: post_id (str) Output: dict with like count |
| get_post_reactions_love_total | Fetch number of 'Love' reactions. Input: post_id (str) Output: dict with love count |
| get_post_reactions_wow_total | Fetch number of 'Wow' reactions. Input: post_id (str) Output: dict with wow count |
| get_post_reactions_haha_total | Fetch number of 'Haha' reactions. Input: post_id (str) Output: dict with haha count |
| get_post_reactions_sorry_total | Fetch number of 'Sorry' reactions. Input: post_id (str) Output: dict with sorry count |
| get_post_reactions_anger_total | Fetch number of 'Anger' reactions. Input: post_id (str) Output: dict with anger count |
| get_post_top_commenters | Get the top commenters on a post. Input: post_id (str) Output: list of user IDs with comment counts |
| post_image_to_facebook | Post an image with a caption to the Facebook page. Input: image_url (str), caption (str) Output: dict of post result |
| send_dm_to_user | Send a direct message to a user. Input: user_id (str), message (str) Output: dict of result from Messenger API |
| update_post | Updates an existing post's message. Input: post_id (str), new_message (str) Output: dict of update result |
| schedule_post | Schedule a new post for future publishing. Input: message (str), publish_time (Unix timestamp) Output: dict with scheduled post info |
| get_page_fan_count | Get the Page's total fan/like count. Input: None Output: integer fan count |
| get_post_share_count | Get the number of shares for a post. Input: post_id (str) Output: integer share count |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |