bots


Facebook Messenger Extensions Javascript Error 2071011


I am trying to use Facebook messenger extensions on my bot
but after I added attached html & javascript code all the time I receive error 2071011 (i try om android phone).
<!DOCTYPE HTML>
<head>
</head>
<body>
<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 = "//connect.facebook.com/en_US/messenger.Extensions.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'Messenger'));
window.extAsyncInit = function () {
// the Messenger Extensions JS SDK is done loading
MessengerExtensions.getUserID(function success(uids) {
var psid = uids.psid;
alert(psid);
}, function error(err) {
alert("Messenger Extension Error: " + err);
});
};
</script>
<h2>Test</h2>
</body>
In code of "messenger.Extensions.js" file I found next explanation:
"JavaScript bridge does not exist - Please make sure you are in latest
'+'version of Facebook or Messenger App."
What does that mean someone can explain what the problem ?
I had the same problem. I fixed it by:
Make sure you have the latest version of messenger
Make sure your webview is opened with messenger_extensions: true
Make sure you whitelist your domains :https://developers.facebook.com/docs/messenger-platform/thread-settings/domain-whitelisting

Related Links

Rich text format for response text in facebook chatbot
Wit.ai stories with branch
How to do a decision tree on MS Bot Framework?
How can we refresh the skype bot token
get recently posts on vbulltein and send to Telegram bot
How to get skype bot id using access token
How can I integrate my Bot (created with the Bot Framework) with Spark?
Microsoft Bot says “The process cannot access the file because it is being used by another process.”
When should we use all three (trait, free-text and keywords) search strategies in a user-defined entity?
alternative to wit.ai merge since it is deprecated now
my telegram bot keeps sending messages endlessly
Telegram: don't search my bot to start conversation
How to add MS bot to slack?
How to get the last executed command in a Telegram bot?
How can i customize answer of Bot Framework Help Command?
How can I identify the particular attachments when I click on a button in cards?

Categories

HOME
php
spring-data
events
automapper
freeradius
windows-8.1
haproxy
dry
nsview
gallery
moodle-api
swift2
turbojpeg
bittorrent
spring-security-oauth2
xamarin-zebble
getopenfilename
jodatime
trace32
mailgun
supervisord
pinterest
fosuserbundle
scala-ide
salt-cloud
parceler
opam
workday
bosun
altium-designer
uislider
backendless
opentext
raima
tracing
gravity-forms-plugin
annotation-processing
amazon-cloudtrail
steam-web-api
memory-fences
python-2.x
image-optimization
apptentive
microsoft-ui-automation
cheat-engine
klee
elasticsearch-aggregation
ssi
roracle
exc-bad-access
kendo-editor
rcharts
word-2016
nitrousio
oracle-fusion-apps
yui3
streamwriter
bilinear-interpolation
svnserve
fiber
adp
odp.net-managed
textblock
wikimedia-commons
grinder
boost-proto
auto-generate
jnlp
green-threads
subfolder
rfc5545
subview
phonegap-facebook-plugin
quantify
jms-serializer
meteorite
spring-security-acl
vlab
xsd2code
iirf
rikulo
spiral
chefspec
office-app
xcode4.5
telerik-ajax
cakeyframeanimation
jdom
hardcode
vows
botnet
winsxs
startupscript
jmenu
webresponse
ccl
comment-conventions
bindable-linq

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App