0
내 var를 추가하려고 할 때마다 postToFeed 함수가 실행되지 않아 며칠 동안 아무런 도움이되지 않을 것입니다!Javascript var에 피드가없는 페이 스북 포스트가로드되고 있습니다
FB.init :
<div id='fb-root'></div>
<script src='http://connect.facebook.net/en_US/all.js'></script>
<p><a onclick='postToFeed(); return false;'>Post to Feed</a></p>
<p id='msg'></p>
<script>
FB.init({appId: "XXXXXXXXXXXX", status: true, cookie: true});
function postToFeed() {
// calling the API ...
var obj = {
method: 'feed',
link: 'https://google.com',
picture: 'http://google.com/logo.png',
name: 'gamehighscore',
caption: 'I just got a highscore of'+record+'',
description: 'Try to beat my score!.'
};
function callback(response) {
document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
}
FB.ui(obj, callback);
}
</script>
그것이 내가 게시 거기에 내가 단지 XXXXXX를 응용 프로그램 IP를 hadd 실패합니다. – Kenp
이 작동하지 않습니다 – Kenp
어떤 스크립트가 작동하지 않습니까? [app의 패널] (https://developers.facebook.com/apps)에 올바른 값을 쓰고 있습니까? – neworld