Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I want to add the facebook 'Like' button to my website, but the JavaScript API is asking for 'your app 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 put there?

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

Thanks.

like image 778
Techboy Avatar asked Nov 15 '25 18:11

Techboy


1 Answers

You should create your app in the facebook developer section and there you will be assigned app id (application id), that is what you should put in there.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!