How to Use Extensions with SDK
1
Enable in Dashboard
Login to CometChat Dashboard, select your app, then go to Chat & Messaging → Features and enable the extension.
2
Configure settings (if required)
Some extensions require API keys or additional configuration. Open the extension settings in the Dashboard.
3
Implement SDK methods
Use the code examples below to call extension APIs and extract extension data from messages.
4
Build your UI
Create UI components to display extension data (e.g., link previews, pinned messages, saved messages).
Bitly
Shorten long URLs in messages using Bitly.Shorten URL
Link Preview
Extract link preview metadata from messages.Extract Link Preview Data
Message Shortcuts
Send predefined messages using shortcuts (e.g.,!hb expands to “Happy birthday!”).