Несколько лет назад, когда кому-то понравилась страница моего сайта, она появилась в их ленте новостей на Facebook.
Теперь эта функция, кажется, полностью отсутствует или я делаю что-то не так.
Вот такой код:
<script>
window.fbAsyncInit = function() {
FB.init({
appId : \'appid\',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
};
(function() {
var e = document.createElement(\'script\');
e.src = document.location.protocol + \'//connect.facebook.net/en_US/all.js#xfbml=1\';
e.async = true;
document.getElementById(\'fb-root\').appendChild(e);
}());
</script>
<div>
<div id="fb-root"></div>
<fb:like send="true" width="500" show_faces="false" action="like" font="arial" href="https://website/somepage" />
<script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script>
</div>