Before you begin
- Sign up with Iframely.
- Get their API key to configure the extension.
Extension settings
- Login to CometChat and select your app.
- Go to the Extensions section and enable the Rich Media Preview extension.
- Open the Settings for this extension.
- Enter the iFramely API Key.
- Save your settings.
How does it work?
If the text message contains a URL, the extension will create a Preview using your iFramely credentials. These details can then be used to show a nice preview card for that URL. The information about the Preview will be updated later for the message and hence you need to implement theonMessageEdited
listener. Please check our Edit message documentation under the SDK of your choice.
Here is a sample response (for https://stackoverflow.com):