The following code can be used to add embed chatroom into a PHP page:

<div class="iflychat-embed" data-room-id="0" data-height="600px" data-width="700px"></div>
 
It has three attributes:
  • data-room-id - room id (always a number). New chat room can be created via our iFlyChat Dashboard or REST API.
  • data-height - This attribute decides height of the embedded chatroom.
  • data-widthThis attribute decides width of the embedded chatroom
We provide one chat room (id = 0)  by default with every API key. You may create more chat rooms by going to Chat Dashboard as illustrated here: https://iflychat.com/docs/help/embedded-chatroom/create-new-chat-room.