PolicyService:GetPolicyInfoForPlayerAsync AllowedExternalLinkReferences Array Not Including Twitter

I have an in-game promo/ad display for twitter handles/shout-outs but I had to verify that certain users are allowed to see it via Roblox’s PolicyService API and check that “Twitter” is included in the AllowedExternalLinkReferences array provided by the API call. So assume that I have it working.

However, it does not seem that “Twitter” is showing up as an AllowedExternalLinkReference element.

My account is 13+, my email & phone number are verified, and I can even put my own twitter handle on my profile, which is weird since I’m allegedly not allowed to see in-game Twitter links.

Can anyone give me a reason to why my account does not have permissions to viewing in-game twitter links? If its the case where I should have permissions, am I running the code incorrectly?

You can test how I accessed the array & your own permissions through this code:

local player = game.Players.<Your UserName>

local PolicyService = game:GetService("PolicyService")

local result, policyInfo = pcall(function()
	return PolicyService:GetPolicyInfoForPlayerAsync(player)
end)

print(result)
for index, value in ipairs(policyInfo.AllowedExternalLinkReferences) do
	print(index, value)
end

If anyone can see “Twitter” in their AllowedExternalLinkReferences array, please let me know. Otherwise, this needs to be an escalated issue with Roblox support. Thanks!

That’s true. It says only “Discord”, “Facebook”, “Twitch”, and “YouTube” included.

https://developer.roblox.com/en-us/api-reference/function/PolicyService/GetPolicyInfoForPlayerAsync

2 Likes

You could use Facebook for now as it is very similar but I don’t believe that people normally wrap Twitter references (e.g Twitter codes) in PolicyService.

1 Like

But it says here that Twitter is allowed. I guess it doesn’t need to be wrapped?
image

Yeah, you’re right. I rarely see other devs wrapping twitter links in that, its more in-your-face promos. Just to be careful, I’ll wrap it in Facebook for now, like you said. Thank you!

could you mark a reply as the solution or change the title so other people don’t keep answering this post? that can cause a lot of confusion often.

1 Like

Okay just did it. Thank you for reminding me. Have a great day!

1 Like