Supported on
Bitmoji
The Bitmoji avatar system allows you to represent various users within your Lens. You have the option of getting the avatar in 2D or 3D.
Adding Bitmoji avatars to your Lens
Take a look at the standalone guides for each type of Bitmoji resources to see an example:
Type | Example |
---|---|
3D Bitmoji | ![]() |
2D Bitmoji | ![]() |
Checkout the Bitmoji3D Component which allows you to add Bitmoji avatars without any code.
Technical Overview
There are several steps to load the Bitmoji.
- Get the
SnapchatUser
object representing the user you want Bitmoji from. This can be accessed via theUserContextSystem
for the current user, their friends, or MyAI. - Create the
requestBitmoji2DResource
orrequestBitmoji3DResource
on theBitmojiModule
which will point to the actual asset we're looking to get. - Use
RemoteMediaModule
to fetch the resource, and display the resource.
Accessing your Friends Bitmoji
In addition to getting the current user's Bitmoji, you can also query for their friends. Take a look at the Friends Component to learn more about accessing their friends' SnapchatUser
info. Combinining the two APIs will allow you to create unique experiences.
For example consider the following:
- Display Bitmoji avatars of the friends you interact with the most
- Display a quiz that displays your friends Bitmoji so you can suggest which of them is most likely to do something.
- Display Bitmoji avatars of the friends that the user least interact with so they can reconnect with them.
Was this page helpful?