facebook - Messenger Extensions Javascript SDK Error 2071011 -
i'm trying create messenger web view (https://developers.facebook.com/docs/messenger-platform/messenger-extension) using messenger extensions javascript sdk.
the page opened web view has following js code
<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 () { // messenger extensions js sdk done loading messengerextensions.getuserid(function success(uids) { var psid = uids.psid; alert(psid); }, function error(err) { alert("messenger extension error: " + err); }); }; </script>
and result alert following message "messenger extension error: 2071011". method "getuserid" goes in error. "2071011" error code means? , how solve it? i've searched lot nothing has been found it.
any appreciated!!
ps: guide says whitelist site of url , i've done too.
how trying open webview? facing same issue messenger extensions work on ios , android per documentation. code works me on ios , throws same error on desktop messenger app. hope helps.
Comments
Post a Comment