Automate your Event RSVP invites: New ways to get event information from the SocialService API

Hi Creators,

Events are an important way for you to engage your users, and keep them coming back to your experience. We’re introducing two new API calls that make it easy for you to automatically get event details, without having to hardcode event IDs. Previously, to prompt a player to RSVP to an event, you would use SocialService:PromptRsvpToEventAsync(). This required you to pass a specific eventId as an argument, and something you either had to hardcode or come up with a workaround to automate.

To solve this, and to make it easier to get information about any of your events for any other purpose, we’ve introduced two new methods to SocialService that lets you automatically find the upcoming events for an experience with a script.

  1. GetUpcomingExperienceEventsAsync(): Fetches a list of all upcoming events scheduled for your experience. This will be returned as an array of dictionaries, ordered from soonest to latest.
  2. GetExperienceEventAsync(): Fetches the details for a single, specific event by its ID. The details it returns includes the experience ID, title, description, and other information about the event.

We’ve updated the documentation for SocialService to include these new calls, which includes an example code snippet to help you get started to show how you might automate sending out event RSVP invites.

Let us know in the comments below if this was a helpful change, and we’d love your feedback on other improvements you’d like to see to SocialService or experience events!

102 Likes

This topic was automatically opened after 12 minutes.

This is a nice improvement in making players aware of upcoming events. We can now automate the creation of in-game event RSVP incentive banners.

6 Likes

This is great, and a super useful update! The only thing I’d request is for the image ID of the event thumbnail to be included in the returned dictionary, which would help with event UI automation.

10 Likes

Very nice change, it will help so much with keeping stuff like event GUI’s and event boards more up to data and live.

1 Like

My last event had over 1000 people signed up for it, but only got a total of… 32 plays from notifications

I’ve sent out notifications using the old Updates system and feel like I used to get way more impressions, it’s a bit unfortunate… maybe this update will help me get more people signed up.

3 Likes

The function doesn’t seems to work

GetUpcomingExperienceEventsAsync is not a valid member of SocialService

I made a Bug report:

1 Like

This is really nice but it would be great if you could also include the thumbnail url in the returned dictionary.

2 Likes

This is great! Can we have a type describing the results instead of {any} and { [any]: any }??

2 Likes

Some feedback for https://create.roblox.com/docs/reference/engine/classes/SocialService#GetUpcomingExperienceEventsAsync

Because it doesn’t takes in count if player is following the event, someone can just copy and paste inside of a loop and player can quit the game, because a invite prompt is showing looped

if selectedEvent then
		if selectedEvent.UserRsvpStatus == Enum.RsvpStatus.NotGoing then
			local success, result = pcall(function()
				return SocialService:PromptRsvpToEventAsync(selectedEvent.Id)
			end)
			if not success then
				warn("RSVP prompt failed:", result)
			end
		else
			warn("Player is following the event")
		end
	else
		warn("No future events available to prompt.")
		return
	end

Automatic live ops events :thinking:

2 Likes

Why can these only be called from the client?

I was looking forwards to using this, but unfortunately I will not be able to since it appears to be that the API is locked to client use only.

We have a system in place where upon reaching 5 minutes of the event’s start, a countdown initiates on all servers with some effects…

Unfortunate. Really hoping that these can be supported in the server some time soon!

2 Likes

“GetUpcomingExperienceEventsAsync” isn’t working. “GetUpcomingExperienceEventsAsync is not a valid member of SocialService “SocialService””

I am calling it from the client, it’s saying the method doesn’t exist.

A lot of games will be more interactive with these new features, and maybe even some games will have automated daily events.

On mobile when calling GetUpcomingExperienceEventsAsync() we get this Message:

GetUpcomingExperienceEventsAsync API is not yet enabled.

HELP!