Get started with messenger CDN
MIT licensed
Messenger is a library for real-time bidirectional communication between web clients and servers.
Tags:- client-side
- notification
- toast
- ajax
Stable version
Copied!
How to start using messenger CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with messenger CDN - cdnhub.io</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/messenger-desktop@1.3.0/build/css/messenger.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/messenger-desktop@1.3.0/build/css/theme-classic.min.css">
<script src="https://cdn.cdnhub.io/messenger/1.5.0/js/messenger.min.js"></script>
<script src="https://cdn.cdnhub.io/messenger/1.5.0/js/messenger-descriptor.min.js"></script>
</head>
<body>
<div id="fb-messenger-container"></div>
<script>
// Initialize Messenger
Messenger.initialize({
appId: 'YOUR_APP_ID', // Your Facebook App ID
nodeSelector: '#fb-messenger-container', // The ID of the container for the Messenger app
theme: 'classic' // Set the theme to classic
});
// Open Messenger when the page loads
Messenger.post('status', { msg: 'Welcome to my website! I am here to help you.' });
Messenger.show();
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!