Messenger Extensions Javascript SDK Error 2071011

后端 未结 3 1125
天涯浪人
天涯浪人 2021-02-04 14:51

I\'m trying to create a Messenger Web View (https://developers.facebook.com/docs/messenger-platform/messenger-extension) by using the Messenger Extensions Javascript SDK.

<
3条回答
  •  春和景丽
    2021-02-04 15:06

    I found "2071011" error explanation in messenger.Extensions.js minified source:

    if (!p) {
        x(2071011, 'JavaScript bridge does not exist - Please make sure you are in latest ' + 'version of Facebook or Messenger App.');
        return;
    }
    

    p value equals q():

    function q() {
        switch (o) {
            case h.ANDROID:
                return window._FBExtensions;
            case h.IOS:
                return window.webkit && window.webkit.messageHandlers;
        }
        return null;
    

    }

    Possible error causes:

    1. Please ensure you have the newest Messenger App version (do not resolve problem in my case).
    2. It is highly possible that Messenger Android app do not include variable window._FBExtensions into WebView context properly - I have this variable undefined and messenger.Extensions.js assumes that _FBExtensions variable already exists. I can't found currently workaround for this as it is Messenger App part.

提交回复
热议问题