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