SocialService facilitates social functions that impact relationships made
on the Roblox platform. Its primary usage is to show
invite prompts and the
phone book to players, allowing them to send invitation requests to their
friends through PromptGameInvite()
and PromptPhoneBook() respectively.
You may leverage signals when such requests are made.
Returns true if the given Player can send a call invite to a
friend. You should always use the result of this method before calling
PromptPhoneBook() since the
ability to open the phone book may vary depending on the player.
See Roblox Connect for a sample
implementation of this method.
This function yields. It will block the calling thread until completion.
CanSendGameInviteAsync()
returns true if the given Player can invite other players to the
current experience. You should always use the result of this method before
calling PromptGameInvite() since
the ability to invite players may vary depending on the platform or
player.
See
Player Invite Prompts
for more details on implementing player invite prompts, customizing
prompts and notifications, and using launch data.
This function yields. It will block the calling thread until completion.
A callback to process when a call is placed from the phone book. The tag
parameter can be used to differentiate between different "entry points" or
similar, as described in
PromptPhoneBook(). Only one
callback can be set.
PromptGameInvite() displays an
invite prompt to the local player through which they may invite their
friends to the current experience. Before calling this method, you should
use
CanSendGameInviteAsync() to
determine whether the player can send an invite, as this ability may vary
depending on the platform or player.
See
Player Invite Prompts
for more details on implementing invite prompts, customizing prompts and
notifications, and using launch data.