заголовок говорит все. Я всегда получаю эту ошибку:
«метод» является обязательным параметром для FB.ui (). Но метод установлен на «feed»
Это потому, что я сейчас работаю локально на своей машине, а не на самом сервере?
Приложение также зарегистрировано в Facebook.
Есть идеи?
<span id='share'>SHARE</span>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({appId: '2907534********', 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>
<script type="text/javascript">
$(document).ready(function(){
$('#share').click(function(e){
e.preventDefault();
FB.ui({
method: 'feed',
name: 'This is the content of the "name" field.',
link: ' http://www.hyperarts.com/',
picture: 'http://www.hyperarts.com/external-xfbml/share-image.gif',
caption: 'This is the content of the "caption" field.',
description: 'This is the content of the "description" field, below the caption.',
message: ''
});
});
});
</script>