> For the complete documentation index, see [llms.txt](https://assetstore.snapchatkit.voxelbusters.com/tutorials/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://assetstore.snapchatkit.voxelbusters.com/tutorials/api/add-extra-content-stickers-and-links.md).

# Add Extra Content(Stickers & Links)

For any sharing content (image/video/live camera), you can add three kinds of extra data.

* Stickers

> *Stickers allow to show additional content to attribute the existing sharing content.* *Only one sticker is allowed.* *A still sticker must be a PNG 1MB or smaller.* *An animated sticker must be a GIF or WebP (preferred) 1MB or smaller.*

* Caption Text

> *This is the caption given to the sharing content once after sharing.* *Captions are limited to 250 characters.*

* Attachment URL

> *URL that can be attached to the sharing content. Usually, you can link your game or attach a deep link to your game content.* *The attachment URL must be a properly formatted URL in string format.*

## *Add Sticker*

#### Create Sticker

Create SnapchatSticker Instance and set its properties. Properties include position of sticker, rotation and size in pixels.

```csharp
private SnapchatSticker CreateSticker()
{
	SnapchatSticker sticker = null;
	sticker = new SnapchatSticker(Application.persistentDataPath + "/" + SharingStickerName);

	// Set Position in normalised screen coordinates
	sticker.SetPosition(0.5f, 0.5f);
	
	// Set rotation in degrees
	sticker.SetRotation(-45f);

	// Set size for the sticker in pixels
	sticker.SetSize(Screen.width * 0.3f, Screen.height * 0.3f);

	return sticker;
}
```

#### Set Sticker to content

Set SnapchatSticker instance created above to SnapchatContent Instance.

```csharp
SnapchatContent content;
....
....
SnapchatSticker sticker = CreateSticker();// Refer code above
content.SetSticker(sticker);
....
SnapchatKitManager.Share(content, OnShareComplete);
```

## Add Caption Text

This is the message displayed over the sharing content (Image/Video/LiveCamera). Pass the text to SnapchatContent instance.

```csharp
content.SetCaptionText("My awesome game!");
```

## Add Attachment Url

Pass  url which can be opened once the user shares on snapchat. Usually this can be the url of your game so the snapchat users can find it on app store.

```csharp
content.SetAttachmentUrl("https://www.google.com");
```

## Example

```csharp
using VoxelBusters.SnapchatKit;

void ShareToSnapchat(string contentFilePath, bool isVideo)
{
    SnapchatContent content;
    if(isVideo)
    {
        content    =    new SnapchatContent(eSnapchatContentType.Video); 
    }
    else
    {
        content    =    new SnapchatContent(eSnapchatContentType.Photo);         
    }
    
    // Set content data
    content.SetContentData(contentFilePath);
    
    // Set sticker
    SnapchatSticker sticker = CreateSticker();
    content.SetSticker(sticker);
    
    // Set Caption Text
    content.SetCaptionText("My Aweseome Game");
    
    // Set Attachment Url
    content.SetAttachmentUrl("https://www.play.google.com");
    
    // Share
    SnapchatKitManager.Share(content, OnShareComplete);
}

private SnapchatSticker CreateSticker()
{
	SnapchatSticker sticker = null;
	sticker = new SnapchatSticker(Application.persistentDataPath + "/" + SharingStickerName);

	// Set Position in normalised screen coordinates
	sticker.SetPosition(0.5f, 0.5f);
	
	// Set rotation in degrees
	sticker.SetRotation(-45f);

	// Set size for the sticker in pixels
	sticker.SetSize(Screen.width * 0.3f, Screen.height * 0.3f);

	return sticker;
}

private void OnShareComplete(bool success, string error)
{
	string message  =  success ? "Successfully Shared" : "Failed to share " + error;
	Debug.Log(message);
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://assetstore.snapchatkit.voxelbusters.com/tutorials/api/add-extra-content-stickers-and-links.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
