How do I add a chat link in profile pages?

You can use our chatWith JavaScript API to add a “Chat with me” link in user profile pages.

<a href="javascript:void(0)" onclick="javascript:jqcc.cometchat.chatWith('USERID');">Chat with me</a>

In the above code USERID needs to be replaced with the profile user’s ID. Please enlist the support of your web/software developer to perform this modification.

Not finding what you need?

The CometChat team is here to help!