我需要一個基本的,如何指導如何從我的網頁拍照,單擊按鈕,該按鈕操作將發送特定圖像到用戶牆,用一些文字...你能告訴我完成這些步驟嗎?Facebook API(圖表)發送網站照片牆
我已閱讀Facebook的開發者論壇上,FB.ui但一切回聲出:沒有定義錯誤FB.ui事件
這裏是我在HTML文件中的代碼:
<div id="fb-root"></div>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({appId: 'some weird number things like that : ZCWjysg4SYlkg0gZDZD', status: true, cookie: true, xfbml: true});
};
(function() {
var e = document.createElement('script');
e.type = 'text/javascript';
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
和代碼在JavaScript jQuery的觸發按鈕:
FB.ui(
{
method: 'feed',
name: 'Facebook Dialogs',
link: 'http://developers.facebook.com/docs/reference/dialogs/',
picture: 'http://fbrell.com/f8.jpg',
caption: 'Reference Documentation',
description: 'Dialogs provide a simple, consistent interface for applications to interface with users.'
},
function(response) {
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
}
);
我完全不知道該怎麼做......和事件在一些網站的一些代碼是錯誤的(錯誤)
我覺得這裏:http://developers.facebook.com/docs/reference/api/post/這是最好的信息來源知道怎麼回事,但我缺少的基本步驟1. 2. 3.