Все ленты — последние статьи

Setup the Facebook SDK for JavaScript

Setup the Facebook SDK for JavaScript
The following snippet of code will give the basic version of the SDK where the options are set to their most common defaults. You should insert it directly after the opening <body> tag on each page you want to load it:
window.fbAsyncInit =function(){
appId :'158127261224024',
xfbml :true,
version :'v2.5'
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
js = d.createElement(s); js.id = id;
js.src ="//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
You can also configure the SDK with advanced settings.