我尝试使用FB.ui并从我的网页分享Vimeo视频。 以下代码适用于Youtube视频,但不适用于Vimeo视频。
function feedposta() {
FB.ui({
method: 'stream.publish',
message: 'Testing SDK',
source: 'http://vimeo.com/23608259',
//source: 'http://www.youtube.com/v/kohozJp9dNs', //it
picture: my_img,
caption: 'beach video (caption)',
},
function(response) {
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
}
);
}
我做错了什么? 谢谢你的帮助......