Facebookで共有しようとしましたが、何も共有できませんでした。私が使用したコードは次のとおりです。
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" />
前もって感謝します。