Checkbox Plugin - Messenger Platform NOT rendered

Support for all CMS, Ecommerce, Framework related problems.
Post Reply
hostanna
Posts: 1
Joined: Sun Jun 17, 2018 3:22 pm

Checkbox Plugin - Messenger Platform NOT rendered

Post by hostanna » Sun Jun 17, 2018 3:33 pm

Trying to implement Facebook Messenger Checkbox Plugin feature into my my application. I am following this guide https://developers.facebook.com/docs/me ... box-plugin but no luck.

I managed to get it working for very sort time but, when I navigate to the page and my messenger checkbox plugin is displayed, but when I navigate to another page and then get back to this page that contains Facebook Checkbox Messenger Plugin it is not rendered and I don't have anything logged from Facebook.

This is my init process for FB

Code: Select all

$window.fbAsyncInit = function () {
    FB.init({
      appId: 'MY_FACEBOOK_APP_ID',
      xfbml: true,
      version: 'v2.8'
    });
};
(function (d, s, id) {
   var js, fjs = d.getElementsByTagName(s)[0];
   var fbElement = d.getElementById(id);
   if (fbElement) {
     return;
   }
   js = d.createElement(s);
   js.id = id;
   js.src = '//connect.facebook.net/en_US/sdk.js';
   fjs.parentNode.insertBefore(js, fjs);
 }(document, 'script', 'facebook-jssdk'));
and this is my directive for facebook messenger checkbox plugin

Code: Select all

<div 
    class="fb-messenger-checkbox"
    origin="{{origin}}"
    page_id="{{pageId}}"
    messenger_app_id="{{messengerAppId}}"
    user_ref="{{userRef}}"
    prechecked="true"
    allow_login="true"
    size="xlarge">
</div>

Does anyone know what can be a problem?

admin
Site Admin
Posts: 5
Joined: Sun Jun 17, 2018 12:12 pm

Re: Checkbox Plugin - Messenger Platform NOT rendered

Post by admin » Wed Jun 20, 2018 5:20 pm

It seems your APP is still not approved. The checkbox plugin will only visible to Admin and once logout from facebook again it will get hidden. So, please make sure your APP is approved by facebook.

Post Reply