
Developer guide
Facebook Events API: Search, Create and Manage Events
Meta's Official Events API is reserved to approved partners. Search Facebook events by city and date, create them, list their guests and answer them from your users' own accounts.
Searchtech meetupLyon, FranceDecember
Lyon Product MeetupThu 7:00 PM · La Cordée PerracheGoing
AI Builders NightTue 6:30 PM · H7 LyonInterested
Women in Tech LyonThu 6:00 PM · OnlineInvited
POST
search/events
GETevents/{id}/attendees
200 OK
Table of Contents
The API
Short answer
Meta's Official Events API exists, but only for event platforms that Meta approves, and public event search by location is no longer open to apps. The working route is a connected account: your app searches, creates and manages events from your users' own Facebook accounts.
For the rest of Meta's platform, see how the Facebook APIs fit together.
With Unipile
Search and create Facebook events in three steps
Connect the accountYour user links their Facebook account through Hosted Auth. No Meta app, no App Review.
Search eventsSend
POST /v2/{account_id}/search/eventswith your key inX-API-KEY, a keyword, a location ID and a date filter.Create and manage eventsCall
POST /v2/{account_id}/eventsto create one, then list its guests or RSVP on/events/{event_id}.
Status in 2026
Is There an Official Facebook Events API?
Yes, with conditions. Meta's Official Events API is built for ticketing and event platforms that publish events to Facebook, and access is granted on application.
The other official routes are narrower. The Graph API only covers events tied to Pages your app manages (see the Facebook Page API), and the Content Library is reserved for researchers. Searching events by location, which older tutorials and repos describe, is no longer granted to apps.
Not to be confused with the conversion events of the Meta Pixel, which are ad tracking.
Official Events APIEvent platforms publishing events. On application
Graph APIEvents of Pages your app manages. Pages only
Search by locationFind events in a city. Closed to apps
Connected accountSearch, create, guests, RSVP. Works today
Source: Meta's Official Events API page. Last verified: November 23, 2026.
Use cases
What Teams Build with Facebook Events
Four products built on their users' connected accounts.
Berlin Startup BrunchSat 11:00 AM · Factory Görlitzer ParkPublic
Founders Run ClubSat 9:00 AM · Tempelhofer FeldPublic
Design Systems TalkSun 4:00 PM · OnlinePublic
Event discovery
A city guide or community app lists events by keyword, city and dates, with their place and picture.
Local events in your product, not just on facebook.com.
Lyon Product MeetupThu, Dec 3 · 7:00 PM · Europe/Paris
Posted in Lyon Product People, 2 co-hosts invitedVisibility: group
Meetup organizers
A community tool creates the event once, in the right group, with co-hosts, and invites the organizer's friends.
One form in your app, the event live on Facebook.
CRCamille RouxHead of Growth, Northwind
Going to Lyon Product Meetup, where your rep is a co-hostThu, Dec 3
CRM context
A CRM matches the guest list of the rep's events with its contacts, so the rep knows who will be in the room.
A reason to say hello before the event.
yes 24maybe 11noreply 6
NLNora LambertGoingyes
YBYanis BenaliGoingyes
RSVP tracking
An event tool shows guests by status and reminds the invited friends who have not answered yet.
A real headcount before you book the room.
Decision
Official Options vs a Connected Account
Meta's routes publish for a platform or a Page. Search, guests and RSVP need to act as the user.
| Criteria | Official Events API | Graph API Page events | Connected account (Unipile) |
|---|---|---|---|
| Who it is for | Event platforms approved by Meta | Pages your app manages | Any user who connects their account |
| Publish events | Yes, as a partner platform | Events of those Pages | Public, private, friends or group events |
| Search events by city and date | No | No | Yes, with keywords, dates and categories |
| Guests by status | Not as a user | Not as a user | Going, interested, invited, declined |
| Invite and RSVP | Not as a user | Not as a user | Invite friends, answer yes, maybe or no |
| Group events | No | No, Groups API retired in 2024 | List a group's upcoming or past events |
Who it is for
Official Events APIEvent platforms approved by Meta
Graph API Page eventsPages your app manages
Connected account (Unipile)Any user who connects their account
Publish events
Official Events APIYes, as a partner platform
Graph API Page eventsEvents of those Pages
Connected account (Unipile)Public, private, friends or group events
Search events by city and date
Official Events APINo
Graph API Page eventsNo
Connected account (Unipile)Yes, with keywords, dates and categories
Guests by status
Official Events APINot as a user
Graph API Page eventsNot as a user
Connected account (Unipile)Going, interested, invited, declined
Invite and RSVP
Official Events APINot as a user
Graph API Page eventsNot as a user
Connected account (Unipile)Invite friends, answer yes, maybe or no
Group events
Official Events APINo
Graph API Page eventsNo, Groups API retired in 2024
Connected account (Unipile)List a group's upcoming or past events
Step 1
Search Facebook Events by Keyword, Date and City
POST /search/events uses the filters of facebook.com's event search. This is the answer to the old question of how to get Facebook events by location with an API.
keywordsis required.start_dateandend_dateare calendar days (YYYY-MM-DD). Without dates, the search covers today to one year ahead.locationtakes one city ID in a list:["{CITY_ID}"]. Get it fromGET /search/parameterswithtype=location, which suggests up to 10 places. Several cities get a400.categorytakes numeric event category IDs in a list, such as["{CATEGORY_ID}"]. The same endpoint returns them withtype=event_category, every category when you send nokeywords.- Pages. Facebook sets the page size: send the
cursorback for more. Results include dates, a place and a picture.
Lyon Product MeetupLa Cordée Perrache, Lyon
AI Builders NightH7, Lyon
Rust Lyon #12Online
POST
location + December200 OKconst BASE = `https://api.unipile.com/v2/${ACCOUNT_ID}`;
const headers = { "X-API-KEY": process.env.UNIPILE_API_KEY, "content-type": "application/json" };
// 1. Turn a city name into a city ID
const cities = await fetch(
`${BASE}/search/parameters?type=location&keywords=Lyon&limit=3`, { headers }
).then(r => r.json());
// 2. Search events in that city in December
const res = await fetch(`${BASE}/search/events`, {
method: "POST", headers,
body: JSON.stringify({
keywords: "tech meetup",
location: [cities.data[0].id],
start_date: "2026-12-01", end_date: "2026-12-31"
})
});
const { data } = await res.json();
import os, requests
BASE = f"https://api.unipile.com/v2/{ACCOUNT_ID}"
headers = {"X-API-KEY": os.environ["UNIPILE_API_KEY"]}
# 1. Turn a city name into a city ID
cities = requests.get(f"{BASE}/search/parameters", headers=headers,
params={"type": "location", "keywords": "Lyon", "limit": 3}).json()["data"]
# 2. Search events in that city in December
events = requests.post(f"{BASE}/search/events", headers=headers, json={
"keywords": "tech meetup",
"location": [cities[0]["id"]],
"start_date": "2026-12-01", "end_date": "2026-12-31",
}).json()["data"]
# 1. Turn a city name into a city ID
curl --request GET \
--url "https://api.unipile.com/v2/{ACCOUNT_ID}/search/parameters?type=location&keywords=Lyon&limit=3" \
--header "X-API-KEY: {YOUR_API_KEY}"
# 2. Search events in that city in December
curl --request POST \
--url "https://api.unipile.com/v2/{ACCOUNT_ID}/search/events" \
--header "X-API-KEY: {YOUR_API_KEY}" \
--header "content-type: application/json" \
--data '{ "keywords": "tech meetup", "location": ["{CITY_ID}"],
"start_date": "2026-12-01", "end_date": "2026-12-31" }'
→ events with dates, place and picture
Step 2
Create a Facebook Event
POST /events creates an event as the connected user, online or in person, and returns the created event.
Required
Name and start
name and start_at, in the future. end_at is optional, timezone takes an IANA name and defaults to UTC.
Where
Online or in person
is_online with online_url, or a location. Facebook refuses links its Community Standards block.
Who
Visibility and guests
visibility: private by default, public, friends or group with group_id. Add co_host_ids, can_attendees_invite (private events only, true by default) and is_attendees_list_hidden (false by default).
const res = await fetch(`${BASE}/events`, {
method: "POST", headers,
body: JSON.stringify({
name: "Product demo",
start_at: "2026-12-10T17:00:00Z",
end_at: "2026-12-10T18:30:00Z",
timezone: "Europe/Paris",
is_online: true,
online_url: "https://meet.google.com/abc-defg-hij",
group_id: GROUP_ID, // visibility "group"
co_host_ids: ["100012345678901"]
})
});
const event = await res.json(); // the created event
event = requests.post(f"{BASE}/events", headers=headers, json={
"name": "Product demo",
"start_at": "2026-12-10T17:00:00Z",
"end_at": "2026-12-10T18:30:00Z",
"timezone": "Europe/Paris",
"is_online": True,
"online_url": "https://meet.google.com/abc-defg-hij",
"group_id": GROUP_ID, # visibility "group"
"co_host_ids": ["100012345678901"],
}).json() # the created event
curl --request POST \
--url "https://api.unipile.com/v2/{ACCOUNT_ID}/events" \
--header "X-API-KEY: {YOUR_API_KEY}" \
--header "content-type: application/json" \
--data '{
"name": "Product demo",
"start_at": "2026-12-10T17:00:00Z",
"end_at": "2026-12-10T18:30:00Z",
"timezone": "Europe/Paris",
"is_online": true,
"online_url": "https://meet.google.com/abc-defg-hij",
"group_id": "{GROUP_ID}"
}'
→ event created in the group, co-host invited
Read it back with GET /events/{event_id}, which also returns is_host. DELETE /events/{event_id} works on events the account organizes.
One API for events
Build Now
Ship Facebook events in your product this week
Connect a Facebook account with Hosted Auth and call the Events endpoints, without applying to a partner program.
Step 3
Guests, Invitations and RSVP
Read guests by status, invite a friend of the account and answer events.
yes 24maybe 11noreply 6no 2
IMInès MartinInterestedmaybe
TFThomas FabreInterestedmaybe
SASofia AlvesInvited by you, no answer yetnoreply
GET
attendees?status=maybe200 OK- List guests.
GET /events/{event_id}/attendeeswithstatus:yes(going, the default),maybe(interested),noreply(invited) orno(declined). - Invite a friend.
POST /events/{event_id}/attendeeswith a numericuser_id, as the "Invite" button does. The friend then appears asnoreply. - RSVP.
POST /events/{event_id}/rsvpwithyes,maybeorno.
Two Facebook rules
Facebook serves the first page of guests only: raise limit up to 100, a cursor gets a 400. The organizer always attends its own event, so its RSVP gets a 400.
// Guests who are interested (first page only)
const maybe = await fetch(
`${BASE}/events/${EVENT_ID}/attendees?status=maybe&limit=100`, { headers }
).then(r => r.json());
// Invite a friend of the account
await fetch(`${BASE}/events/${EVENT_ID}/attendees`, {
method: "POST", headers,
body: JSON.stringify({ user_id: "100012345678901" })
});
// Answer someone else's event
await fetch(`${BASE}/events/${OTHER_EVENT_ID}/rsvp`, {
method: "POST", headers, body: JSON.stringify({ status: "yes" })
});
# Guests who are interested (first page only)
maybe = requests.get(f"{BASE}/events/{EVENT_ID}/attendees", headers=headers,
params={"status": "maybe", "limit": 100}).json()
# Invite a friend of the account
requests.post(f"{BASE}/events/{EVENT_ID}/attendees", headers=headers,
json={"user_id": "100012345678901"})
# Answer someone else's event
requests.post(f"{BASE}/events/{OTHER_EVENT_ID}/rsvp", headers=headers,
json={"status": "yes"})
# Invite a friend of the account
curl --request POST \
--url "https://api.unipile.com/v2/{ACCOUNT_ID}/events/{EVENT_ID}/attendees" \
--header "X-API-KEY: {YOUR_API_KEY}" \
--header "content-type: application/json" \
--data '{ "user_id": "100012345678901" }'
# Answer someone else's event
curl --request POST \
--url "https://api.unipile.com/v2/{ACCOUNT_ID}/events/{EVENT_ID}/rsvp" \
--header "X-API-KEY: {YOUR_API_KEY}" \
--header "content-type: application/json" \
--data '{ "status": "yes" }'
Groups
Events of a Facebook Group
GET /groups/{group_id}/events lists a group's upcoming events, or its past ones with period=past, with a cursor and a limit.
This list has no dates or places: call GET /events/{event_id} on each event to get them. To create an event inside a group, pass its group_id to POST /events.
Reading posts, members and keyword alerts in groups is covered in our Facebook Groups API guide.
Lyon Product MeetupRetrieve for date and place
Product demoRetrieve for date and place
GET
groups/{id}/events?period=upcoming200 OK
Same API
The Same Events API on LinkedIn
The routes you used for Facebook work for LinkedIn events too. Only what LinkedIn allows changes.
| Feature | ||
|---|---|---|
| Search filters | Keywords, dates, city, categories | Keywords only |
| Create: visibility | Public, private, friends or group | Public only |
| Group, co-host and guest options | Yes | Refused (400) |
| Guest list | By status, first page | Attending guests only |
| Invite | Friends of the account | Relations of the account |
| RSVP and group events | Yes | Not supported (501) |
Search filters
Create: visibility
Group, co-host and guest options
Guest list
Invite
RSVP and group events
On LinkedIn, creating or deleting an event also creates or deletes its announcement post. Details in our LinkedIn Events API guide.
Bring Facebook events into your app
Connect your users' Facebook accounts, search events by city and date, create them and follow every RSVP with one REST API. Messages work the same way with the Unipile Facebook API.
All Facebook API endpoints in one place
Events are one part of the picture. See every Facebook endpoint available with Unipile, or read the complete Facebook API guide.
Facebook Events API FAQ
Quick answers on Meta's official options, events by location and event lists.
Partly. Meta's Official Events API still exists for event platforms that Meta approves on application, and the Graph API covers events of Pages your app manages. Searching public events by location is no longer granted to apps. A connected account, where each user links their own Facebook account, covers search, creation, guests and RSVP.
With Unipile, first get the city ID with GET /v2/{account_id}/search/parameters?type=location, then call POST /v2/{account_id}/search/events with keywords, location set to a list holding that city ID and optional start_date and end_date. Results include dates, a place and a picture.
For a group, call GET /v2/{account_id}/groups/{group_id}/events, with period=past for past events, then retrieve each event for its date and place. Events of a Page you manage are served by Meta's Graph API with the Page's access; see our Facebook Page API guide.
It is Meta's program for ticketing and event platforms that publish their events to Facebook. Access is granted on application, so it does not fit a product that needs events from its own users' accounts. Unipile is not part of that program: it works through the accounts your users connect.
No. Unipile is an independent company, not a Meta Partner, and it is not endorsed, sponsored or approved by Meta. Your app searches, creates and manages events through your users' own Facebook accounts. Facebook is a trademark of Meta Platforms, Inc.
No. Your users connect their own Facebook account through hosted authentication, and your app calls the Events endpoints with your Unipile API key. You do not apply to the Official Events API and skip the Meta app and App Review.
Still have questions? Our team is here to help.
Talk to an expert
