MattyDevs
(MattyDevs)
January 21, 2023, 6:15pm
#1
Around a month ago I started to notice that webhooks couldn’t get player profile picture.
This is the line that I use for webhooks which is currently broken:
'https://www.roblox.com/headshot-thumbnail/image?userId='..player.UserId..'&width=420&height=420&format=png'
Any help would be greatly appreciated!
1 Like
2jammers
(2jammers)
January 21, 2023, 6:20pm
#2
If you are doing this in game, then you should use Players:GetUserThumbnailAsync()
2 Likes
MattyDevs
(MattyDevs)
January 21, 2023, 6:23pm
#3
I need to get a link of players profile picture.
AdSomnum
(kai)
January 21, 2023, 6:24pm
#4
local content = Players:GetUserThumbnailAsync(plr.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
2jammers
(2jammers)
January 21, 2023, 6:25pm
#5
This will return the rbxthumb://
. Your other option is a get request from the user api.
cxmeels
(cxmeels)
January 21, 2023, 6:28pm
#6
the endpoints you’re using are no longer active. you’ll have to use the official thumbnails API to fetch images, which means parsing the thumbnail URL from the response JSON
https://thumbnails.roblox.com/docs
you’ll have to create a little node server to request and return the image URL, or if you’re using a service like IFTTT with a pro subscription, you could use queries and filters to retrieve it
4 Likes
system
(system)
Closed
February 4, 2023, 6:28pm
#7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.