这是非常简单的代码:
var obj = {
method: "feed",
link: share_url,
picture: share_url,
name: "test name",
caption: "test caption",
description: "Using Dialogs to interact with users."
};
function callback(response) {
console.log(response);
}
FB.ui(obj, callback);
share_url是这样的:
事情就是帖子写在我的墙上,但图像不存在!即使我为“链接”和“图片”提供了相同的URL。那是为什么?
答案 0 :(得分:2)
这是答案。如果我省略图片参数,那么一切正常! E.g。
var obj = {
method: "feed",
link: share_url,
name: "test name",
caption: "test caption",
description: "Using Dialogs to interact with users."
};
function callback(response) {
console.log(response);
}
FB.ui(obj, callback);
我不知道为什么,但事实就是如此。