0
votes

Can you use the Facebook send button functionality (https://developers.facebook.com/docs/plugins/send-button) without an appid?

The example from the Facebook seems to work without an APP_ID

<body>
    <div id="fb-root"></div>
        <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.net/en_GB/sdk.js#xfbml=1&version=v2.0";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    <div class="fb-send" data-href="http://www.bbc.co.uk" data-colorscheme="light"></div>
</body>

but didn't want the button to suddenly stop working if this is required!

1

1 Answers

0
votes

I think it's needed because the example shown when clicking the "Get Code" button in the link you provided seems to require it.

<div id="fb-root"></div>
  <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.net/en_US/sdk.js#xfbml=1&appId=1530164767244635&version=v2.0";
     fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));
  </script>

I'd recommend using an app_id. Did you try using it without an app_id on your site?