3
我試圖在Facebook上分享但是無法分享任何內容。 ,我已經使用的代碼是: -如何訪問BB10中的FB共享?
在Javascript中
FB.init({
appId: 'some id',
cookie: true,
status:true,
xfbml:true,
oauth:true
});
function postToFeed() {
// calling the API ...
var obj = {
method: 'feed',
link: 'http://www.example.com',
picture: imageToShare,
name: 'name',
caption: 'This Link is Shared through the some application.',
description: ''
};
function callback(response) {
//document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
}
FB.ui(obj, callback);
}
在配置文件中
<access uri="http://connect.facebook.net" />
在此先感謝。
嗨chadtatro, 我收到一個錯誤「調用錯誤:INVOKE_NO_TARGET_ERROR」你能幫我嗎? 謝謝 – Arpit 2013-02-28 09:21:11