How to Use Extensions with SDK
Enable in Dashboard
Login to CometChat Dashboard, select your app, then go to Chat & Messaging → Features and enable the extension.
Configure settings (if required)
Some extensions require API keys or additional configuration. Open the extension settings in the Dashboard.
Implement SDK methods
Use the code examples below to call extension APIs and extract extension data from 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!”).