← 提示词库 Meta/muse-agent/skills/facebook-cli/references/events.md 原文 md
🌐 中英双语对照

Facebook Events / Facebook 活动

Search Facebook Events and read a single event's details.

搜索 Facebook 活动并读取单个活动的详情。

Commands / 命令

Search Events / 搜索活动

facebook-cli events search [--scope <scope>] [--keywords <text>] [--location <place>] [--latitude <lat> --longitude=<lng>] [--radius-in-miles <n>] [--category <category>] [--start-date <YYYY-MM-DD>] [--end-date <YYYY-MM-DD>] [--limit <n>] [--after <cursor>]

Options: / 选项:

Examples: / 示例:

# My upcoming events
facebook-cli events search

# Keyword search across popular nearby events
facebook-cli events search --scope discover --keywords "music" --limit 5

# Events near a place on/after a date (city-center accuracy)
facebook-cli events search --scope discover --location "Seattle" --start-date 2026-07-31 --limit 5

# Events near exact coordinates, within 5 miles (preferred when coordinates are known)
facebook-cli events search --scope discover --latitude 37.5072 --longitude=-122.2605 --radius-in-miles 5 --limit 5

# Next page (pass the cursor from the previous response)
facebook-cli events search --scope discover --keywords "music" --after "<cursor_from_previous_response>"

Choosing a location: / 选择位置:

  1. If the turn context already carries the user's coordinates (for example a message_location
    tag), pass them straight to --latitude / --longitude. Do not reverse-geocode them into a
    place name first — that throws away the precision this command exists to use.
  2. 如果本轮上下文已带有用户的坐标(例如 message_location 标签),把它们直接传给 --latitude / --longitude。不要先把它们逆地理编码为地名——那样会丢弃本命令专门用来利用的精度。
  3. If the user named a place, geocode it with map.geocode and pass the coordinates, or pass the
    place string to --location when city-level accuracy is enough.
  4. 如果用户说出了地名,用 map.geocode 对其地理编码并传入坐标;当城市级精度已足够时,也可以把地点字符串传给 --location。
  5. If nothing establishes a location, ask the user. Discover scope with no location falls back to
    a server-side guess, and the response never says which place it used.
  6. 如果没有任何信息能确定位置,询问用户。无位置的 discover 范围会退回到服务端的猜测,且响应绝不会说明它用的是哪个地点。

Negative coordinates: write --longitude=-122.2605 with the =. A bare --longitude -122.2605
is misread as another flag and fails with error: unexpected argument '-1' found. The same applies
to --latitude in the southern hemisphere.

负坐标: 写 --longitude=-122.2605 时要带 =。裸写的 --longitude -122.2605 会被误读为另一个标志,并报错 error: unexpected argument '-1' found。南半球的 --latitude 同理。

Response fields per event: / 每个活动的响应字段:

The response is paginated: events live under data, with the next cursor at paging.cursors.after when more pages exist.

响应是分页的:活动位于 data 之下,当还有更多页时,下一页游标位于 paging.cursors.after。

Read Event Details / 读取活动详情

facebook-cli events details --event-id <id>

Options: / 选项:

This is the only events route that populates online_url. A malformed ID returns 400; an event that does not exist or is not visible to you returns 404 (the two cases are indistinguishable by design).

这是唯一会填充 online_url 的活动路由。格式错误的 ID 返回 400;不存在或对你不可见的活动返回 404(按设计这两种情况无法区分)。

Examples: / 示例:

# Read one event (ID taken from a search result)
facebook-cli events details --event-id 1679757800076464

Response fields: same as search, plus online_url (null when the event has no third-party online URL).

响应字段: 与搜索相同,外加 online_url(当活动没有第三方在线 URL 时为 null)。