MCP
FacebookMCP服务器
每天约有20亿用户在Facebook上分享帖子、照片、视频、群组、活动和Marketplace列表,使其在社区传播、客户服务、本地发现和社交商业中至关重要。
MCP 版本: 1.0.0 29 MCP工具 身份验证
基本网址
https://mcp.pressmonitor.com/mcp 身份验证
MCP 调用也使用 Bearer 令牌通过 JSON-RPC 2.0 请求。
Authorization: Bearer YOUR_TOKEN events_search
搜索活动
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query | string | 是 | 搜索查询 |
| end_cursor | string | 不 | 结束游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "events_search",
"arguments": {
"query": "VALUE"
}
},
"id": 1
}' get_post
获取帖子
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| post_id | string | 是 | 帖子ID |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "get_post",
"arguments": {
"post_id": "VALUE"
}
},
"id": 1
}' group_info
群组信息
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| id | string | 是 | ID |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "group_info",
"arguments": {
"id": "VALUE"
}
},
"id": 1
}' marketplace_product
市场产品
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| product_id | string | 是 | 产品ID |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "marketplace_product",
"arguments": {
"product_id": "VALUE"
}
},
"id": 1
}' marketplace_profile
市场资料
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user_id | string | 是 | 用户ID |
| end_cursor | string | 不 | 结束游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "marketplace_profile",
"arguments": {
"user_id": "VALUE"
}
},
"id": 1
}' marketplace_search
市场搜索
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query | string | 是 | 搜索查询 |
| end_cursor | string | 不 | 结束游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "marketplace_search",
"arguments": {
"query": "VALUE"
}
},
"id": 1
}' page_albums
页面相册
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| id | string | 是 | ID |
| end_cursor | string | 不 | 结束游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "page_albums",
"arguments": {
"id": "VALUE"
}
},
"id": 1
}' page_details
页面详情
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| id | string | 是 | ID |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "page_details",
"arguments": {
"id": "VALUE"
}
},
"id": 1
}' page_feed
页面动态
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| id | string | 是 | ID |
| end_cursor | string | 不 | 结束游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "page_feed",
"arguments": {
"id": "VALUE"
}
},
"id": 1
}' pages_search
搜索页面
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query | string | 是 | 搜索查询 |
| end_cursor | string | 不 | 结束游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "pages_search",
"arguments": {
"query": "VALUE"
}
},
"id": 1
}' pages_search_post
页面搜索帖子
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query | string | 是 | 搜索查询 |
| end_cursor | string | 不 | 结束游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "pages_search_post",
"arguments": {
"query": "VALUE"
}
},
"id": 1
}' post_comments
帖子评论
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| post_id | string | 是 | 帖子ID |
| end_cursor | string | 不 | 结束游标 |
| order | string | 不 | 排序 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "post_comments",
"arguments": {
"post_id": "VALUE"
}
},
"id": 1
}' post_reactions
帖子反应
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| post_id | string | 是 | 帖子ID |
| end_cursor | string | 不 | 结束游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "post_reactions",
"arguments": {
"post_id": "VALUE"
}
},
"id": 1
}' post_reactions_count
帖子反应数
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| post_id | string | 是 | 帖子ID |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "post_reactions_count",
"arguments": {
"post_id": "VALUE"
}
},
"id": 1
}' posts_search
搜索帖子
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query | string | 是 | 搜索查询 |
| date_posted | string | 不 | 发布日期 |
| end_cursor | string | 不 | 结束游标 |
| end_date | string | 不 | 结束日期 |
| recent_posts | string | 不 | 最近帖子 |
| start_date | string | 不 | 开始日期 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "posts_search",
"arguments": {
"query": "VALUE"
}
},
"id": 1
}' posts_search_post
帖子搜索帖子
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query | string | 是 | 搜索查询 |
| end_cursor | string | 不 | 结束游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "posts_search_post",
"arguments": {
"query": "VALUE"
}
},
"id": 1
}' profile_about
个人资料简介
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user_id | string | 是 | 用户ID |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "profile_about",
"arguments": {
"user_id": "VALUE"
}
},
"id": 1
}' profile_albums
个人资料相册
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user_id | string | 是 | 用户ID |
| end_cursor | string | 不 | 结束游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "profile_albums",
"arguments": {
"user_id": "VALUE"
}
},
"id": 1
}' profile_feed
个人资料动态
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user_id | string | 是 | 用户ID |
| end_cursor | string | 不 | 结束游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "profile_feed",
"arguments": {
"user_id": "VALUE"
}
},
"id": 1
}' profile_friends
个人资料好友
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user_id | string | 是 | 用户ID |
| end_cursor | string | 不 | 结束游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "profile_friends",
"arguments": {
"user_id": "VALUE"
}
},
"id": 1
}' profile_likes
个人资料点赞
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user_id | string | 是 | 用户ID |
| end_cursor | string | 不 | 结束游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "profile_likes",
"arguments": {
"user_id": "VALUE"
}
},
"id": 1
}' profile_page
个人资料页面
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user_id | string | 是 | 用户ID |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "profile_page",
"arguments": {
"user_id": "VALUE"
}
},
"id": 1
}' profile_photos
个人资料照片
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user_id | string | 是 | 用户ID |
| end_cursor | string | 不 | 结束游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "profile_photos",
"arguments": {
"user_id": "VALUE"
}
},
"id": 1
}' profile_search
搜索个人资料
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query | string | 是 | 搜索查询 |
| end_cursor | string | 不 | 结束游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "profile_search",
"arguments": {
"query": "VALUE"
}
},
"id": 1
}' profile_search_post
个人资料搜索帖子
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query | string | 是 | 搜索查询 |
| end_cursor | string | 不 | 结束游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "profile_search_post",
"arguments": {
"query": "VALUE"
}
},
"id": 1
}' profile_videos
个人资料视频
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user_id | string | 是 | 用户ID |
| end_cursor | string | 不 | 结束游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "profile_videos",
"arguments": {
"user_id": "VALUE"
}
},
"id": 1
}' video_id_url
视频ID URL
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| url | string | 是 | URL |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "video_id_url",
"arguments": {
"url": "VALUE"
}
},
"id": 1
}'