Integration Guide

Two quick ways to add Dialogoo Chat to your website.

Sample webmaster ID: 1

Method A — Simple Link

Send users to your chat room with a normal link or button. This is the most reliable and works everywhere.

Recommended URL (always works):

https://dialogoo.com/chat/1

Example HTML button:

<a class="btn btn-primary" href="https://dialogoo.com/chat/1">Open my chat</a>

Method B — Embed Script (keeps your domain)

This injects a full-screen iframe overlay into your page and keeps your domain in the address bar. It requests the correct permissions for camera, microphone, and geolocation.

Drop this inside your HTML:

<script src="https://dialogoo.com/script/1"></script>

Alternative (query string):

<script src="https://dialogoo.com/script.php?wmid=1"></script>

Close the overlay from your chat (optional):

Your chat app can post a message to the parent page to close the full-screen overlay:

window.parent.postMessage({ type: 'dialogoo:close' }, '*');
Permissions note: The script sets the correct permissions for camera, microphone, geolocation, display capture, and more. Make sure you serve over HTTPS and that users grant permissions.

Optional Apache rewrites

Add these to your vhost or .htaccess to enable pretty URLs:

# /chat/{id} already handled by your app

# /script/{id} -> script.php
RewriteEngine On
RewriteRule ^script/([0-9]+)(\.js)?$ script.php?wmid=$1 [L,QSA]

# Bare /{id} -> script.php (for embed) OR could redirect to /chat/{id} if you prefer
RewriteRule ^([0-9]+)(\.js)?$ script.php?wmid=$1 [L,QSA]

FAQ