Facebook Customer Chat Plugin not working
The chat plugin does not work, installed everything correctly on the site, but the chat does not appear on the site. I checked the console - there is a connection to SDK, what could be the problem?
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/ru_RU/sdk/xfbml.customerchat.js';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
and
<div class="fb-customerchat"
page_id="184854859536XXXX">
</div>
facebook sdk facebook-chat
migrated from superuser.com Jan 22 at 14:29
This question came from our site for computer enthusiasts and power users.
|
show 1 more comment
The chat plugin does not work, installed everything correctly on the site, but the chat does not appear on the site. I checked the console - there is a connection to SDK, what could be the problem?
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/ru_RU/sdk/xfbml.customerchat.js';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
and
<div class="fb-customerchat"
page_id="184854859536XXXX">
</div>
facebook sdk facebook-chat
migrated from superuser.com Jan 22 at 14:29
This question came from our site for computer enthusiasts and power users.
You’ve gone over the Troubleshooting Tips in the plugin documentation already?
– misorude
Jan 22 at 14:33
@misorude Yes, I checked the hint. My site link
– Sasha Bubela
Jan 22 at 15:10
<div id="fb-root"></div>
should go into the body of the document, not the head.
– misorude
Jan 22 at 15:15
just did it, nothing happened
– Sasha Bubela
Jan 22 at 15:18
Were you able to fix the problem Sasha?
– Brian Duncan
Jan 24 at 20:55
|
show 1 more comment
The chat plugin does not work, installed everything correctly on the site, but the chat does not appear on the site. I checked the console - there is a connection to SDK, what could be the problem?
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/ru_RU/sdk/xfbml.customerchat.js';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
and
<div class="fb-customerchat"
page_id="184854859536XXXX">
</div>
facebook sdk facebook-chat
The chat plugin does not work, installed everything correctly on the site, but the chat does not appear on the site. I checked the console - there is a connection to SDK, what could be the problem?
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/ru_RU/sdk/xfbml.customerchat.js';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
and
<div class="fb-customerchat"
page_id="184854859536XXXX">
</div>
facebook sdk facebook-chat
facebook sdk facebook-chat
asked Jan 22 at 14:26
Sasha BubelaSasha Bubela
32
32
migrated from superuser.com Jan 22 at 14:29
This question came from our site for computer enthusiasts and power users.
migrated from superuser.com Jan 22 at 14:29
This question came from our site for computer enthusiasts and power users.
You’ve gone over the Troubleshooting Tips in the plugin documentation already?
– misorude
Jan 22 at 14:33
@misorude Yes, I checked the hint. My site link
– Sasha Bubela
Jan 22 at 15:10
<div id="fb-root"></div>
should go into the body of the document, not the head.
– misorude
Jan 22 at 15:15
just did it, nothing happened
– Sasha Bubela
Jan 22 at 15:18
Were you able to fix the problem Sasha?
– Brian Duncan
Jan 24 at 20:55
|
show 1 more comment
You’ve gone over the Troubleshooting Tips in the plugin documentation already?
– misorude
Jan 22 at 14:33
@misorude Yes, I checked the hint. My site link
– Sasha Bubela
Jan 22 at 15:10
<div id="fb-root"></div>
should go into the body of the document, not the head.
– misorude
Jan 22 at 15:15
just did it, nothing happened
– Sasha Bubela
Jan 22 at 15:18
Were you able to fix the problem Sasha?
– Brian Duncan
Jan 24 at 20:55
You’ve gone over the Troubleshooting Tips in the plugin documentation already?
– misorude
Jan 22 at 14:33
You’ve gone over the Troubleshooting Tips in the plugin documentation already?
– misorude
Jan 22 at 14:33
@misorude Yes, I checked the hint. My site link
– Sasha Bubela
Jan 22 at 15:10
@misorude Yes, I checked the hint. My site link
– Sasha Bubela
Jan 22 at 15:10
<div id="fb-root"></div>
should go into the body of the document, not the head.– misorude
Jan 22 at 15:15
<div id="fb-root"></div>
should go into the body of the document, not the head.– misorude
Jan 22 at 15:15
just did it, nothing happened
– Sasha Bubela
Jan 22 at 15:18
just did it, nothing happened
– Sasha Bubela
Jan 22 at 15:18
Were you able to fix the problem Sasha?
– Brian Duncan
Jan 24 at 20:55
Were you able to fix the problem Sasha?
– Brian Duncan
Jan 24 at 20:55
|
show 1 more comment
1 Answer
1
active
oldest
votes
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'facebook-developer-app-id',
autoLogAppEvents : true,
xfbml : true,
version : 'v3.2'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/ru_RU/sdk/xfbml.customerchat.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<!-- Your customer chat code -->
<div class="fb-customerchat"
attribution=setup_tool
page_id="YOUR ID"
logged_in_greeting="Hello. How we can help you?"
logged_out_greeting="Hello. How we can help you?">
</div>
Tried this, created an app and used its ID. Used rest of your code but no luck.
– Brian Duncan
Jan 24 at 20:54
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54310471%2ffacebook-customer-chat-plugin-not-working%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'facebook-developer-app-id',
autoLogAppEvents : true,
xfbml : true,
version : 'v3.2'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/ru_RU/sdk/xfbml.customerchat.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<!-- Your customer chat code -->
<div class="fb-customerchat"
attribution=setup_tool
page_id="YOUR ID"
logged_in_greeting="Hello. How we can help you?"
logged_out_greeting="Hello. How we can help you?">
</div>
Tried this, created an app and used its ID. Used rest of your code but no luck.
– Brian Duncan
Jan 24 at 20:54
add a comment |
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'facebook-developer-app-id',
autoLogAppEvents : true,
xfbml : true,
version : 'v3.2'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/ru_RU/sdk/xfbml.customerchat.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<!-- Your customer chat code -->
<div class="fb-customerchat"
attribution=setup_tool
page_id="YOUR ID"
logged_in_greeting="Hello. How we can help you?"
logged_out_greeting="Hello. How we can help you?">
</div>
Tried this, created an app and used its ID. Used rest of your code but no luck.
– Brian Duncan
Jan 24 at 20:54
add a comment |
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'facebook-developer-app-id',
autoLogAppEvents : true,
xfbml : true,
version : 'v3.2'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/ru_RU/sdk/xfbml.customerchat.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<!-- Your customer chat code -->
<div class="fb-customerchat"
attribution=setup_tool
page_id="YOUR ID"
logged_in_greeting="Hello. How we can help you?"
logged_out_greeting="Hello. How we can help you?">
</div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'facebook-developer-app-id',
autoLogAppEvents : true,
xfbml : true,
version : 'v3.2'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/ru_RU/sdk/xfbml.customerchat.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<!-- Your customer chat code -->
<div class="fb-customerchat"
attribution=setup_tool
page_id="YOUR ID"
logged_in_greeting="Hello. How we can help you?"
logged_out_greeting="Hello. How we can help you?">
</div>
answered Jan 24 at 8:30
KamilKamil
184
184
Tried this, created an app and used its ID. Used rest of your code but no luck.
– Brian Duncan
Jan 24 at 20:54
add a comment |
Tried this, created an app and used its ID. Used rest of your code but no luck.
– Brian Duncan
Jan 24 at 20:54
Tried this, created an app and used its ID. Used rest of your code but no luck.
– Brian Duncan
Jan 24 at 20:54
Tried this, created an app and used its ID. Used rest of your code but no luck.
– Brian Duncan
Jan 24 at 20:54
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54310471%2ffacebook-customer-chat-plugin-not-working%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You’ve gone over the Troubleshooting Tips in the plugin documentation already?
– misorude
Jan 22 at 14:33
@misorude Yes, I checked the hint. My site link
– Sasha Bubela
Jan 22 at 15:10
<div id="fb-root"></div>
should go into the body of the document, not the head.– misorude
Jan 22 at 15:15
just did it, nothing happened
– Sasha Bubela
Jan 22 at 15:18
Were you able to fix the problem Sasha?
– Brian Duncan
Jan 24 at 20:55