Facebook JavaScript SDK - what is “your app id” when you just want to use the SDK for your facebook “Like” button?

I want to add a Like button on my site, but the JavaScript API requests ' your application ID

<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: 'your app id', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol +
      '//connect.facebook.net/en_US/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());
</script>

What should I do there?

I could use the iframe code they give, but would rather use XFBML, as it will allow me to add additional features in the future.

Thank.

+3
source share
1 answer

facebook, ( id), .

+4

Source: https://habr.com/ru/post/1746678/


All Articles