SocialService:PromptGameInvite() does not load friends list

Whenever I try to use the invite friends feature using SocialService:PromptGameInvite(), it opens the friends list but then loads forever, or takes a really long time (15+ seconds) to load. I’ve noticed this happens in all of my games (code below) but does not always happen in other people’s games. This issue happens both on PC (Windows) and mobile (iOS).

Code I use to invite friends:

inviteFriendsButton.Activated:Connect(function()
	if CanSendGameInvite() then
		local inviteOptions = Instance.new("ExperienceInviteOptions")
		inviteOptions.PromptMessage = "Invite your friends to join the fun!"
		
		SocialService:PromptGameInvite(player, inviteOptions)
	end
end)

Expected behavior

I expect the friends list to load in just a couple seconds after the prompt is opened.

A private message is associated with this bug report

17 Likes

bump, I’ve just ran into this same issue and its severely hindering my ability to optimize intentional co-play which now factors into the algorithm. My invite menu loads for 3-10 seconds and then closes itself. This behavior is consistent across testing I conducted on multiple devices/accounts.

3 Likes

Update: I found that adding wait(1) after checking if the player’s invites are enabled before calling PromptGameInvite() seems to fix the issue. However, this is still a bug that needs to be addressed, as the loading issue was not happening a few months ago even without adding wait(1).

8 Likes

I bump this. Adding a wait/task.wait is a good workaround for the meantime.

1 Like

Bump. Can confirm this works in the meantime

1 Like

this absolutely needs to get fixed

2 Likes

This issue still exists, though I am experiencing it when opening an invite for a specific friend by setting ExperienceInviteOptions.InviteUser. The invite pop-up either does not show up or takes a very long time to show up.

This workaround works for me as well.

2 Likes

This is still happening months later, staff claim in other posts that they’ve acknowledged it here, but where’s the acknowledgement? Is this going to be fixed?

1 Like

Can confirm, this is still happening to us, the task.wait(1) trick worked but haven’t tested it fully, why would the api not yield it until its actually fully loaded?

I’m also seeing this issue. I found task.wait(1) wasn’t quite sufficient always, task.wait(2) does work, but makes it feel quite unresponsive.

Bump, this is still happening. Also I noticed that it works instantly when I got rid of SocialService:CanSendGameInviteAsync() and immediately called just PromptGameInvite().

1 Like


Also having this issue when trying to invite a specific person in-game. Usually takes a long time (20+ seconds) or never loads the invitation prompt at all, even when I try adding a 4 second wait. Also having the issue of the UI being broken and text not aligned properly, my name being missing yet it obviously has the right userid as it can load my user thumbnail, and I am yet to actually receive the notification to join when I test on multiple accounts.

Actually insane how this has not been fixed yet

1 Like