Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
293 views
in Technique[技术] by (71.8m points)

javascript - Why “Send to messenger” plugin doesn't show?

I have the "send to messenger" plugin that supposed to show but doesn't show. If this helps you in any way that would be supreme.

My page:

<body>
   <script>
    window.fbAsyncInit = function () {
        FB.init({
            xfbml: true,
            version: 'v9.0'
        });

        FB.Event.subscribe('send_to_messenger', function (e) {
            console.log(e);
        });
    };

    (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/en_US/sdk/xfbml.customerchat.js';
        fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));
</script>


<div class="fb-send-to-messenger" messenger_app_id="XXXX" page_id="XXXX"  
    data-ref="anything" color="blue" size="large">
</div>
</body>

I added my webhook to the whitelist, as well as, I allowed the cookies.

I used everything in production (Heroku PasS), but the same, the button not showing.

There is something I missed? Thanks in advance


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...