有没有人设法弄清楚如何使用javascript分享到Facebook。我有这个代码,它适用于其他人但不适用于facebook
tizen.filesystem.resolve("images", function(images) {
var imagePath = images.resolve(imageFileSource);
var appControlData = [new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/path", [imagePath.toURI()])];
var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/share", imagePath.toURI(),
"image/*", null, appControlData);
tizen.application.launchAppControl(appControl, null,
function(){
console.log("launch appControl succeeded");
},
function(e){
console.log("No Sharer", "You're phone doesn't seems to have a default image sharer");
},
null); });
我尝试了ApplicationControlData(“image”,[..])以及删除appControlData。但我设法让它只适用于facebook,他们不会通过我的批准!!!