MCP

Facebook MCP Сервер

Около 2 миллиардов пользователей ежедневно делятся публикациями, фотографиями, видео, группами, мероприятиями и объявлениями на Facebook, что делает его важным для привлечения сообщества, обслуживания клиентов, локального открытия и социальной торговли.

MCP Версия: 1.0.0 29 Инструменты MCP Аутентификация
Facebook

Базовый URL

https://mcp.pressmonitor.com/mcp

Аутентификация

Вызовы MCP также используют токены Bearer в запросах JSON-RPC 2.0.

Authorization: Bearer YOUR_TOKEN

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
}'

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_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
}'

post_shares

Поделились постом

Аргументы

Имя Тип Обязательно Описание
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_shares",
    "arguments": {
      "post_id": "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_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
}'

share_post_url

Поделиться 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": "share_post_url",
    "arguments": {
      "url": "VALUE"
    }
  },
  "id": 1
}'

video_id_url

URL ID видео

Аргументы

Имя Тип Обязательно Описание
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
}'