사용자가 친구의 벽에 게시 할 수 있도록 대화 상자를 열기 위해 fb.ui를 사용하려고합니다.fb.ui는 콜백에서 post_id를 반환하지만 실제로 게시하지 않습니다.
<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: "YOUR_APP_ID", status: true, cookie: true});
function postToFeed() {
// calling the API ...
var obj = {
method: 'feed',
redirect_uri: 'YOUR URL HERE',
link: 'https://developers.facebook.com/docs/reference/dialogs/',
picture: 'http://fbrell.com/f8.jpg',
name: 'Facebook Dialogs',
caption: 'Reference Documentation',
description: 'Using Dialogs to interact with users.'
};
function callback(response) {
document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
}
FB.ui(obj, callback);
}
모든 것이 잘 작동 보인다, 콜백이 호출되고 난 post_id를 참조하지만 난 페이스 북에 갈 때 난 내 친구의 실제 게시물을 볼 수 없습니다 : 나는 페이스 북이 가지고있는 가장 기본적인 샘플을 시도하고있다 wall ..