The following links have a code sample at the bottom which uses block quotes:
Both are affected by the same issue.
Picture of the issue:
There also seems to be some other programming mistakes such as this line:
local res, canSend = pcall(SocialService:CanSendGameInviteAsync(targetPlayer))
local res, canInvite = pcall(SocialService:PromptGameInvite(targetPlayer))